mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpmux: Mark pad as needing reconfiguration again if it failed
And return FLUSHING instead of NOT_NEGOTIATED on flushing pads. https://bugzilla.gnome.org/show_bug.cgi?id=774623
This commit is contained in:
parent
a9b1aa1255
commit
15630db146
1 changed files with 10 additions and 2 deletions
|
@ -439,7 +439,11 @@ gst_rtp_mux_chain_list (GstPad * pad, GstObject * parent,
|
|||
GstCaps *current_caps = gst_pad_get_current_caps (pad);
|
||||
|
||||
if (!gst_rtp_mux_setcaps (pad, rtp_mux, current_caps)) {
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
gst_pad_mark_reconfigure (rtp_mux->srcpad);
|
||||
if (GST_PAD_IS_FLUSHING (rtp_mux->srcpad))
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
else
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
gst_buffer_list_unref (bufferlist);
|
||||
goto out;
|
||||
}
|
||||
|
@ -519,7 +523,11 @@ gst_rtp_mux_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
GstCaps *current_caps = gst_pad_get_current_caps (pad);
|
||||
|
||||
if (!gst_rtp_mux_setcaps (pad, rtp_mux, current_caps)) {
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
gst_pad_mark_reconfigure (rtp_mux->srcpad);
|
||||
if (GST_PAD_IS_FLUSHING (rtp_mux->srcpad))
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
else
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
gst_buffer_unref (buffer);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue