mmmw_plat/openmax_al_api/tsrc/openmaxaltestmodule/src/common/openmaxalobjectitftests.cpp
changeset 16 43d09473c595
parent 14 80975da52420
child 53 eabc8c503852
--- a/mmmw_plat/openmax_al_api/tsrc/openmaxaltestmodule/src/common/openmaxalobjectitftests.cpp	Mon May 03 12:59:52 2010 +0300
+++ b/mmmw_plat/openmax_al_api/tsrc/openmaxaltestmodule/src/common/openmaxalobjectitftests.cpp	Fri May 14 16:22:35 2010 +0300
@@ -20,6 +20,7 @@
 #include <StifParser.h>
 #include <StifTestInterface.h>
 #include "openmaxaltestmodule.h"
+#include "profileutilmacro.h"
 
 // EXTERNAL DATA STRUCTURES
 //extern  ?external_data;
@@ -86,7 +87,17 @@
             status = aItem.GetNextInt(async);
             if(!status)
                 {
-                res = (*itf)->Realize(itf, async);
+                if (object == XA_OBJECTID_MEDIAPLAYER)
+                    {
+                    TAG_TIME_PROFILING_BEGIN;
+                    res = (*itf)->Realize(itf, async);
+                    TAG_TIME_PROFILING_END;
+                    PRINT_TO_CONSOLE_TIME_DIFF;
+                    }
+                else
+                    {
+                    res = (*itf)->Realize(itf, async);
+                    }
                 status = res;
                 }
             else
@@ -196,7 +207,7 @@
             func = GetCallbackFunc(object);
             if(func)
                 {
-                res = (*itf)->RegisterCallback(itf, func, NULL);
+                res = (*itf)->RegisterCallback(itf, func, this);
                 status = res;
                 }
             else
@@ -238,7 +249,17 @@
         XAObjectItf itf = GetObject(object);
         if(itf != NULL)
             {
-            (*itf)->Destroy(itf);
+            if (object == XA_OBJECTID_MEDIAPLAYER)
+                {
+                TAG_TIME_PROFILING_BEGIN;
+                (*itf)->Destroy(itf);
+                TAG_TIME_PROFILING_END;
+                PRINT_TO_CONSOLE_TIME_DIFF;
+                }
+            else
+                {
+                (*itf)->Destroy(itf);
+                }
             }
         else
             {