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:
Thiago Santos 2014-03-10 09:49:07 -03:00
parent 0e2f63654b
commit 3ed2507ebc
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;