mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
omxvideoenc: No need to signal the drain cond when going from READY to PAUSED
Also the component is not started in READY.
This commit is contained in:
parent
6e41e31e6c
commit
de7d237851
1 changed files with 2 additions and 3 deletions
|
@ -574,10 +574,8 @@ gst_omx_video_enc_change_state (GstElement * element, GstStateChange transition)
|
||||||
gst_omx_port_set_flushing (self->out_port, FALSE);
|
gst_omx_port_set_flushing (self->out_port, FALSE);
|
||||||
self->downstream_flow_ret = GST_FLOW_OK;
|
self->downstream_flow_ret = GST_FLOW_OK;
|
||||||
|
|
||||||
g_mutex_lock (self->drain_lock);
|
|
||||||
self->draining = FALSE;
|
self->draining = FALSE;
|
||||||
g_cond_broadcast (self->drain_cond);
|
self->started = FALSE;
|
||||||
g_mutex_unlock (self->drain_lock);
|
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||||
break;
|
break;
|
||||||
|
@ -609,6 +607,7 @@ gst_omx_video_enc_change_state (GstElement * element, GstStateChange transition)
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
self->downstream_flow_ret = GST_FLOW_WRONG_STATE;
|
self->downstream_flow_ret = GST_FLOW_WRONG_STATE;
|
||||||
|
self->started = FALSE;
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
if (!gst_omx_video_enc_close (self))
|
if (!gst_omx_video_enc_close (self))
|
||||||
|
|
Loading…
Reference in a new issue