From de7d237851fec569625a5faa8661bb01b15df948 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 10 Nov 2011 14:40:56 +0100 Subject: [PATCH] omxvideoenc: No need to signal the drain cond when going from READY to PAUSED Also the component is not started in READY. --- omx/gstomxvideoenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index b354c29..54eec08 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -574,10 +574,8 @@ gst_omx_video_enc_change_state (GstElement * element, GstStateChange transition) gst_omx_port_set_flushing (self->out_port, FALSE); self->downstream_flow_ret = GST_FLOW_OK; - g_mutex_lock (self->drain_lock); self->draining = FALSE; - g_cond_broadcast (self->drain_cond); - g_mutex_unlock (self->drain_lock); + self->started = FALSE; break; case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; @@ -609,6 +607,7 @@ gst_omx_video_enc_change_state (GstElement * element, GstStateChange transition) break; case GST_STATE_CHANGE_PAUSED_TO_READY: self->downstream_flow_ret = GST_FLOW_WRONG_STATE; + self->started = FALSE; break; case GST_STATE_CHANGE_READY_TO_NULL: if (!gst_omx_video_enc_close (self)) -- 2.7.4