summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--omx/gstomxaudioenc.c2
-rw-r--r--omx/gstomxvideodec.c1
-rw-r--r--omx/gstomxvideoenc.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/omx/gstomxaudioenc.c b/omx/gstomxaudioenc.c
index c3b7152..9718f8f 100644
--- a/omx/gstomxaudioenc.c
+++ b/omx/gstomxaudioenc.c
@@ -513,9 +513,9 @@ eos:
flow_ret = GST_FLOW_EOS;
}
g_mutex_unlock (&self->drain_lock);
-
self->downstream_flow_ret = flow_ret;
+ /* Here we fallback and pause the task for the EOS case */
if (flow_ret != GST_FLOW_OK)
goto flow_error;
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index be7e1f8..12f7634 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -1642,6 +1642,7 @@ eos:
g_mutex_unlock (&self->drain_lock);
self->downstream_flow_ret = flow_ret;
+ /* Here we fallback and pause the task for the EOS case */
if (flow_ret != GST_FLOW_OK)
goto flow_error;
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
index 69ae3cc..d4d001e 100644
--- a/omx/gstomxvideoenc.c
+++ b/omx/gstomxvideoenc.c
@@ -909,6 +909,7 @@ eos:
g_mutex_unlock (&self->drain_lock);
self->downstream_flow_ret = flow_ret;
+ /* Here we fallback and pause the task for the EOS case */
if (flow_ret != GST_FLOW_OK)
goto flow_error;