projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
289ecfe
)
omxvideodec: fix startup race condition
author
Christian König
<christian.koenig@amd.com>
Sat, 1 Mar 2014 17:48:17 +0000
(18:48 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sun, 2 Mar 2014 11:08:09 +0000
(12:08 +0100)
The reset function shouldn't start the src pad
loop if it wasn't started before.
Signed-off-by: Christian König <christian.koenig@amd.com>
omx/gstomxvideodec.c
patch
|
blob
|
history
diff --git
a/omx/gstomxvideodec.c
b/omx/gstomxvideodec.c
index
bf44b3d
..
c2fbd8f
100644
(file)
--- a/
omx/gstomxvideodec.c
+++ b/
omx/gstomxvideodec.c
@@
-2735,6
+2735,9
@@
gst_omx_video_dec_reset (GstVideoDecoder * decoder, gboolean hard)
GST_DEBUG_OBJECT (self, "Resetting decoder");
+ if (gst_omx_component_get_state (self->dec, 0) == OMX_StateLoaded)
+ return TRUE;
+
gst_omx_port_set_flushing (self->dec_in_port, 5 * GST_SECOND, TRUE);
gst_omx_port_set_flushing (self->dec_out_port, 5 * GST_SECOND, TRUE);