summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-13 13:24:23 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-13 13:24:23 +0100
commitc2469e82f91f6ff860e55e45fb8962284869294e (patch)
treefa064b3855219c8a07dfc3ed7614f08192d57293
parent575cb87091dae408050f00652643d234bc4c2723 (diff)
ffdemux: activate pad before setting caps
-rw-r--r--ext/ffmpeg/gstffmpegdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
index 2a97e12..24948f8 100644
--- a/ext/ffmpeg/gstffmpegdemux.c
+++ b/ext/ffmpeg/gstffmpegdemux.c
@@ -974,6 +974,7 @@ gst_ffmpegdemux_get_stream (GstFFMpegDemux * demux, AVStream * avstream)
g_free (padname);
gst_pad_use_fixed_caps (pad);
+ gst_pad_set_active (pad, TRUE);
gst_pad_set_caps (pad, caps);
gst_caps_unref (caps);
@@ -1001,7 +1002,6 @@ gst_ffmpegdemux_get_stream (GstFFMpegDemux * demux, AVStream * avstream)
demux->streams[avstream->index] = stream;
/* activate and add */
- gst_pad_set_active (pad, TRUE);
gst_element_add_pad (GST_ELEMENT (demux), pad);
/* metadata */