khronosfws/openmax_al/src/mmf_adaptation/xamediarecorderadaptctxmmf.c
changeset 33 5e8b14bae8c3
parent 25 6f7ceef7b1d1
child 53 eabc8c503852
--- a/khronosfws/openmax_al/src/mmf_adaptation/xamediarecorderadaptctxmmf.c	Fri Jun 25 17:36:03 2010 -0500
+++ b/khronosfws/openmax_al/src/mmf_adaptation/xamediarecorderadaptctxmmf.c	Fri Jul 09 16:43:35 2010 -0500
@@ -22,8 +22,6 @@
 #include "cmmfbackendengine.h"
 #include "xaadptbasectx.h"
 
-extern XAboolean cameraRealized;
-
 /*
  * XAAdaptationBaseCtx* XAMediaRecorderAdaptMMF_Create()
  * Allocates memory for Media Recorder Adaptation Context and makes 1st phase initialization
@@ -36,9 +34,7 @@
         XADataSource* pImageVideoSrc, XADataSink* pDataSnk, XAuint8 recModes)
     {
     XAMediaRecorderAdaptationMMFCtx *pSelf = NULL;
-    XAuint32 locType = 0;
     XAresult res;
-    XADataLocator_IODevice *ioDevice;
     DEBUG_API("->XAMediaRecorderAdaptMMF_Create");
 
     pSelf = (XAMediaRecorderAdaptationMMFCtx*) calloc(1,
@@ -81,27 +77,6 @@
             pSelf->audioEncSettings.bitRate = 128;
             pSelf->audioEncSettings.sampleRate = 44100;
             }
-
-        if (pImageVideoSrc)
-            {
-            locType = *((XAuint32*) (pImageVideoSrc->pLocator));
-            if (locType == XA_DATALOCATOR_IODEVICE)
-                {
-                ioDevice
-                        = (XADataLocator_IODevice*) (pImageVideoSrc->pLocator);
-                if (ioDevice->deviceType == XA_IODEVICE_CAMERA
-
-                && !cameraRealized
-
-                )
-                    {
-                    DEBUG_ERR("Preconditions violated - Camera object not realized");
-                    XAAdaptationBaseMMF_Free(&pSelf->baseObj);
-                    free(pSelf);
-                    pSelf = NULL;
-                    }
-                }
-            }
         }
     else
         {
@@ -138,7 +113,7 @@
     XADataFormat_MIME* tempFormat;
     XAMediaRecorderAdaptationMMFCtx *pSelf;
     DEBUG_API("->XAMediaRecorderAdapt_PostInit");
-    if(bCtx)
+    if(!bCtx)
         {
         ret = XA_RESULT_PARAMETER_INVALID;
         return ret;