mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
basesrc: stop when negotiation fails
This commit is contained in:
parent
af4d5c7fd6
commit
e32fa21071
1 changed files with 7 additions and 1 deletions
|
@ -2450,7 +2450,7 @@ gst_base_src_loop (GstPad * pad)
|
||||||
/* check if we need to renegotiate */
|
/* check if we need to renegotiate */
|
||||||
if (gst_pad_check_reconfigure (pad)) {
|
if (gst_pad_check_reconfigure (pad)) {
|
||||||
if (!gst_base_src_negotiate (src))
|
if (!gst_base_src_negotiate (src))
|
||||||
GST_DEBUG_OBJECT (src, "Failed to renegotiate");
|
goto not_negotiated;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_LIVE_LOCK (src);
|
GST_LIVE_LOCK (src);
|
||||||
|
@ -2607,6 +2607,12 @@ done:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* special cases */
|
/* special cases */
|
||||||
|
not_negotiated:
|
||||||
|
{
|
||||||
|
GST_DEBUG_OBJECT (src, "Failed to renegotiate");
|
||||||
|
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||||
|
goto pause;
|
||||||
|
}
|
||||||
flushing:
|
flushing:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (src, "we are flushing");
|
GST_DEBUG_OBJECT (src, "we are flushing");
|
||||||
|
|
Loading…
Reference in a new issue