--- gstomx_base_videodec1.c	2008-08-21 11:29:58.000000000 +0800
+++ gstomx_base_videodec.c	2008-08-21 11:29:55.000000000 +0800
@@ -181,6 +181,18 @@
     param->nVersion.s.nVersionMajor = 1;
     param->nVersion.s.nVersionMinor = 1;
 
+    {
+        const GValue* codec_data;
+        GstBuffer  * buffer;
+        codec_data = gst_structure_get_value(structure, "codec_data");
+        if(codec_data)
+        {
+            buffer= gst_value_get_buffer(codec_data);
+            omx_base->codec_data= buffer;      
+            gst_buffer_ref(buffer);
+        }
+    }
+
     /* Input port configuration. */
     {
         param->nPortIndex = 0;
@@ -229,7 +241,7 @@
         }
 
         /* TI specific hacks. */
-#if 0
+#if 1
         {
             param->nPortIndex = 0;
             OMX_GetParameter (gomx->omx_handle, OMX_IndexParamPortDefinition, param);
