khronosfws/openmax_al/src/engine/xaengineitf.c
changeset 47 c2e43643db4c
parent 42 1fa3fb47b1e3
child 55 e267340986c9
--- a/khronosfws/openmax_al/src/engine/xaengineitf.c	Wed Aug 18 10:17:22 2010 +0300
+++ b/khronosfws/openmax_al/src/engine/xaengineitf.c	Thu Sep 02 20:58:01 2010 +0300
@@ -47,8 +47,8 @@
         const XAInterfaceID *pInterfaceIds,
         const XAboolean *pInterfaceRequired)
     {
+#ifdef OMAX_CAMERABIN
     XAEngineItfImpl* impl = GetImpl(self);
-#ifdef OMAX_CAMERABIN
     return XACameraDeviceImpl_CreateCameraDevice( impl->mapper,impl->capabilities,
             pDevice, deviceID,numInterfaces,
             pInterfaceIds, pInterfaceRequired );
@@ -423,9 +423,9 @@
 void XAEngineItfImpl_Free(XAEngineItfImpl* self)
     {
     DEBUG_API("->XAEngineItfImpl_Free");
-    assert(self==self->self);
     if(self)
         {
+        assert(self==self->self);
         free(self);
         }
     DEBUG_API("<-XAEngineItfImpl_Free");