mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
queue: queue2: preserve last flow result when pushing events
Avoids mistakenly returning _OK when downstream is still _NOT_LINKED on subsequent received pad pushes https://bugzilla.gnome.org/show_bug.cgi?id=725917
This commit is contained in:
parent
0e2f63654b
commit
3ed2507ebc
2 changed files with 2 additions and 2 deletions
|
@ -1089,7 +1089,7 @@ out_unexpected:
|
|||
static GstFlowReturn
|
||||
gst_queue_push_one (GstQueue * queue)
|
||||
{
|
||||
GstFlowReturn result = GST_FLOW_OK;
|
||||
GstFlowReturn result = queue->srcresult;
|
||||
GstMiniObject *data;
|
||||
|
||||
data = gst_queue_locked_dequeue (queue);
|
||||
|
|
|
@ -2577,7 +2577,7 @@ gst_queue2_dequeue_on_eos (GstQueue2 * queue, GstQueue2ItemType * item_type)
|
|||
static GstFlowReturn
|
||||
gst_queue2_push_one (GstQueue2 * queue)
|
||||
{
|
||||
GstFlowReturn result = GST_FLOW_OK;
|
||||
GstFlowReturn result = queue->srcresult;
|
||||
GstMiniObject *data;
|
||||
GstQueue2ItemType item_type;
|
||||
|
||||
|
|
Loading…
Reference in a new issue