mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
ffdemux: activate pad before setting caps
This commit is contained in:
parent
575cb87091
commit
c2469e82f9
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue