gst_plugins_base/gst/playback/gstdecodebin2.c
changeset 35 e3187d58ca5e
parent 8 4a7fac7dd34a
equal deleted inserted replaced
33:ec10aa4a09b0 35:e3187d58ca5e
   628       decode_bin->typefind = NULL;
   628       decode_bin->typefind = NULL;
   629     }
   629     }
   630 
   630 
   631     /* get the sinkpad */
   631     /* get the sinkpad */
   632     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
   632     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
   633 
   633     g_return_if_fail (pad != NULL);
       
   634     
   634     /* ghost the sink pad to ourself */
   635     /* ghost the sink pad to ourself */
   635     gpad = gst_ghost_pad_new ("sink", pad);
   636     gpad = gst_ghost_pad_new ("sink", pad);
   636     gst_pad_set_active (gpad, TRUE);
   637     gst_pad_set_active (gpad, TRUE);
   637     gst_element_add_pad (GST_ELEMENT (decode_bin), gpad);
   638     gst_element_add_pad (GST_ELEMENT (decode_bin), gpad);
   638 
   639