ffmux: Actually set caps on the srcpad instead of working with NULL caps

This commit is contained in:
Sebastian Dröge 2009-03-15 10:19:53 +01:00
parent 178b421f0a
commit 3fcef3b6a7

View file

@ -222,6 +222,7 @@ gst_ffmpegmux_init (GstFFMpegMux * ffmpegmux, GstFFMpegMuxClass * g_class)
GstPadTemplate *templ = gst_element_class_get_pad_template (klass, "src");
ffmpegmux->srcpad = gst_pad_new_from_template (templ, "src");
gst_pad_set_caps (ffmpegmux->srcpad, gst_pad_template_get_caps (templ));
gst_element_add_pad (GST_ELEMENT (ffmpegmux), ffmpegmux->srcpad);
ffmpegmux->collect = gst_collect_pads_new ();