mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
videodecoder: Handle GAP events
Drain out the decoder when encountering a gap. Needed for DVD 'still' sequences which consist of a single video frame, and a large gap while audio plays.
This commit is contained in:
parent
52cfce851a
commit
6159817c95
1 changed files with 9 additions and 0 deletions
|
@ -960,6 +960,15 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
|
|||
forward_immediate = TRUE;
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_GAP:
|
||||
{
|
||||
GstFlowReturn flow_ret = GST_FLOW_OK;
|
||||
|
||||
flow_ret = gst_video_decoder_drain_out (decoder, FALSE);
|
||||
ret = (flow_ret == GST_FLOW_OK);
|
||||
forward_immediate = TRUE;
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_CUSTOM_DOWNSTREAM:
|
||||
{
|
||||
gboolean in_still;
|
||||
|
|
Loading…
Reference in a new issue