mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
monoscope: 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
858d9f9706
commit
a9b1aa1255
1 changed files with 7 additions and 2 deletions
|
@ -312,9 +312,14 @@ ensure_negotiated (GstMonoscope * monoscope)
|
||||||
|
|
||||||
/* we don't know an output format yet, pick one */
|
/* we don't know an output format yet, pick one */
|
||||||
if (reconfigure || !gst_pad_has_current_caps (monoscope->srcpad)) {
|
if (reconfigure || !gst_pad_has_current_caps (monoscope->srcpad)) {
|
||||||
if (!gst_monoscope_src_negotiate (monoscope))
|
if (!gst_monoscope_src_negotiate (monoscope)) {
|
||||||
|
gst_pad_mark_reconfigure (monoscope->srcpad);
|
||||||
|
if (GST_PAD_IS_FLUSHING (monoscope->srcpad))
|
||||||
|
return GST_FLOW_FLUSHING;
|
||||||
|
else
|
||||||
return GST_FLOW_NOT_NEGOTIATED;
|
return GST_FLOW_NOT_NEGOTIATED;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue