gst_plugins_base/gst/playback/gstdecodebin.c
changeset 34 1b8125c02661
parent 16 8e837d1bf446
equal deleted inserted replaced
32:bacedbef5672 34:1b8125c02661
   398       decode_bin->typefind = NULL;
   398       decode_bin->typefind = NULL;
   399     }
   399     }
   400 
   400 
   401     /* get the sinkpad */
   401     /* get the sinkpad */
   402     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
   402     pad = gst_element_get_static_pad (decode_bin->typefind, "sink");
       
   403     g_return_if_fail (pad != NULL);
   403 
   404 
   404     /* ghost the sink pad to ourself */
   405     /* ghost the sink pad to ourself */
   405     gpad = gst_ghost_pad_new ("sink", pad);
   406     gpad = gst_ghost_pad_new ("sink", pad);
   406     gst_pad_set_active (gpad, TRUE);
   407     gst_pad_set_active (gpad, TRUE);
   407     gst_element_add_pad (GST_ELEMENT (decode_bin), gpad);
   408     gst_element_add_pad (GST_ELEMENT (decode_bin), gpad);