From 35a13a2cead12656d60c16ecc93d279c4889cda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 15 Mar 2013 10:58:58 +0100 Subject: [PATCH] omx: Reset EOS flag in more places --- omx/gstomx.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 26a9f15385..ed707aac0c 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -1552,11 +1552,11 @@ gst_omx_port_set_flushing (GstOMXPort * port, GstClockTime timeout, err = OMX_ErrorTimeout; goto done; } - - /* Reset EOS flag */ - port->eos = FALSE; } + /* Reset EOS flag */ + port->eos = FALSE; + done: gst_omx_port_update_port_definition (port, NULL); @@ -2217,8 +2217,11 @@ gst_omx_port_wait_enabled_unlocked (GstOMXPort * port, GstClockTime timeout) gst_omx_error_to_string (err), err); err = last_error; } else { - if (enabled) + if (enabled) { port->flushing = FALSE; + /* Reset EOS flag */ + port->eos = FALSE; + } } gst_omx_component_handle_messages (comp);