mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
icydemux: activate srcpad before setting caps
Before gst_pad_set_active() is called, the pad has FLUSHING flag set, so setting the caps fails
This commit is contained in:
parent
b63a6e2cbc
commit
6c31088adc
1 changed files with 1 additions and 1 deletions
|
@ -231,6 +231,7 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps)
|
|||
g_return_val_if_fail (icydemux->srcpad != NULL, FALSE);
|
||||
|
||||
gst_pad_use_fixed_caps (icydemux->srcpad);
|
||||
gst_pad_set_active (icydemux->srcpad, TRUE);
|
||||
|
||||
if (icydemux->src_caps)
|
||||
gst_pad_set_caps (icydemux->srcpad, icydemux->src_caps);
|
||||
|
@ -238,7 +239,6 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps)
|
|||
GST_DEBUG_OBJECT (icydemux, "Adding src pad with caps %" GST_PTR_FORMAT,
|
||||
icydemux->src_caps);
|
||||
|
||||
gst_pad_set_active (icydemux->srcpad, TRUE);
|
||||
if (!(gst_element_add_pad (GST_ELEMENT (icydemux), icydemux->srcpad)))
|
||||
return FALSE;
|
||||
gst_element_no_more_pads (GST_ELEMENT (icydemux));
|
||||
|
|
Loading…
Reference in a new issue