mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
queue: avoid return flushing if we have a not-linked
Return the correct flow return instead of returning always flushing. This would cause queue to convert not-linked to flushing and making upstream elements stop. Based on the previous patch for queue2. https://bugzilla.gnome.org/show_bug.cgi?id=776999
This commit is contained in:
parent
045700e80e
commit
058bdcfe6b
1 changed files with 8 additions and 4 deletions
|
@ -1465,15 +1465,19 @@ no_item:
|
|||
}
|
||||
out_flushing:
|
||||
{
|
||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue, "exit because we are flushing");
|
||||
return GST_FLOW_FLUSHING;
|
||||
GstFlowReturn ret = queue->srcresult;
|
||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue,
|
||||
"exit because task paused, reason: %s", gst_flow_get_name (ret));
|
||||
return ret;
|
||||
}
|
||||
out_flushing_query:
|
||||
{
|
||||
GstFlowReturn ret = queue->srcresult;
|
||||
queue->last_query = FALSE;
|
||||
g_cond_signal (&queue->query_handled);
|
||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue, "exit because we are flushing");
|
||||
return GST_FLOW_FLUSHING;
|
||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue,
|
||||
"exit because task paused, reason: %s", gst_flow_get_name (ret));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue