mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
omxvideodec: Also flush/unflush the input port when changing the state PAUSED<->READY
This commit is contained in:
parent
28688414b8
commit
934fac7946
1 changed files with 2 additions and 0 deletions
|
@ -180,11 +180,13 @@ gst_omx_video_dec_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
gst_omx_port_set_flushing (self->out_port, FALSE);
|
||||
gst_omx_port_set_flushing (self->in_port, FALSE);
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
gst_omx_port_set_flushing (self->out_port, TRUE);
|
||||
gst_omx_port_set_flushing (self->in_port, TRUE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue