queue2: Reset result flow when retrying
authorEdward Hervey <edward@centricular.com>
Mon, 22 Oct 2018 11:45:52 +0000 (13:45 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 22 Oct 2018 11:52:30 +0000 (13:52 +0200)
commit98fabd2fa2de3b2b7d36f829fdd12cbb08ca6c77
tree9428358a9d834482363d7b23ce85c9836cbf034c
parent5658ae998606a180539d970701bd72a45d59370b
queue2: Reset result flow when retrying

If we ever get a GST_FLOW_EOS from downstream, we might retry
pushing new data. But if pushing that data doesn't return a
GstFlowReturn (such as pushing events), we would end up returning
the previous GstFlowReturn (i.e. EOS).

Not properly resetting it would cause cases where queue2 would
stop pushing on the first GstEvent stored (even if there is more
data contained within).
plugins/elements/gstqueue2.c