summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-03-16 10:00:24 +0100
committerJosep Torra <n770galaxy@gmail.com>2013-03-16 10:00:24 +0100
commita5778efe16a678ce875cd0b10a0fa6e1d726139c (patch)
tree18acf17732bd15bcb89d4c05f9d458261d35af52
parente16207f3dd9674597f42526a7da802ace59948de (diff)
downloadgst-omx-a5778efe16a678ce875cd0b10a0fa6e1d726139c.tar.gz
omx: Clarify that loop task is also paused in EOS
-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;