mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
videodecoder: flush decoder in transition PAUSED->READY
https://bugzilla.gnome.org/show_bug.cgi?id=787311
This commit is contained in:
parent
2dcdd13512
commit
6e9edc3031
1 changed files with 5 additions and 0 deletions
|
@ -2494,6 +2494,11 @@ gst_video_decoder_change_state (GstElement * element, GstStateChange transition)
|
|||
if (decoder_class->start && !decoder_class->start (decoder))
|
||||
goto start_failed;
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
GST_VIDEO_DECODER_STREAM_LOCK (decoder);
|
||||
gst_video_decoder_flush (decoder, TRUE);
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue