mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
omxvideodec: fix startup race condition
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>
This commit is contained in:
parent
289ecfe35c
commit
0a8cfcde87
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue