summaryrefslogtreecommitdiff
path: root/ext/ffmpeg/gstffmpegmux.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-15 10:19:53 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-23 14:07:06 +0100
commit3fcef3b6a7799f32b213b486ec80b9acf356e9d7 (patch)
treea910bc06310468e2c637059b2af49f72f59a9e4b /ext/ffmpeg/gstffmpegmux.c
parent178b421f0a6ef0237e71ddba551115707defd814 (diff)
ffmux: Actually set caps on the srcpad instead of working with NULL caps
Diffstat (limited to 'ext/ffmpeg/gstffmpegmux.c')
-rw-r--r--ext/ffmpeg/gstffmpegmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
index a72497c..e1324f0 100644
--- a/ext/ffmpeg/gstffmpegmux.c
+++ b/ext/ffmpeg/gstffmpegmux.c
@@ -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 ();