khronosfws/openmax_al/src/gst_adaptation/xaadaptationgst.c
changeset 32 94fc26b6e006
parent 31 8dfd592727cb
child 42 1fa3fb47b1e3
--- a/khronosfws/openmax_al/src/gst_adaptation/xaadaptationgst.c	Wed Jun 23 18:47:10 2010 +0300
+++ b/khronosfws/openmax_al/src/gst_adaptation/xaadaptationgst.c	Tue Jul 06 14:50:35 2010 +0300
@@ -55,8 +55,6 @@
             }
         else
             {
-            GError* gerror = 0;
-
             /*         Add default handler for Gst-bus messages */
             pSelf->busCb = XAAdaptationGst_GstBusCb;
 
@@ -65,13 +63,6 @@
             // VASU MOD ENDS
 
             sem_init(&(pSelf->semAsyncWait), 0, 0);
-
-            if (!gst_init_check(NULL, NULL, &gerror))
-                {
-                DEBUG_ERR("Gst Initalization failure.");
-                return XA_RESULT_INTERNAL_ERROR;
-                }
-
             }
         }
     else
@@ -489,8 +480,9 @@
                             ;
                             gstSrc = gst_element_factory_make("devsoundsrc",
                                     name); //Krishna - changed to devsoundsrc
-                            g_object_set(G_OBJECT (gstSrc), "num-buffers",
-                                    80, NULL);
+							// no need to set num-buffers		
+                            /*g_object_set(G_OBJECT (gstSrc), "num-buffers",
+                                    80, NULL);*/
                             break;
                         case XA_ADAPTID_AUDIOTESTSRC:
                             /*fall through*/