mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
videodecoder: do not lose events when dropping frames
Events must be persisted after a frame is dropped to avoid losing obligatory information for the stream. https://bugzilla.gnome.org/show_bug.cgi?id=721835
This commit is contained in:
parent
b1e728a854
commit
672cda66db
1 changed files with 5 additions and 0 deletions
|
@ -2461,6 +2461,11 @@ gst_video_decoder_release_frame (GstVideoDecoder * dec,
|
|||
gst_video_codec_frame_unref (frame);
|
||||
dec->priv->frames = g_list_delete_link (dec->priv->frames, link);
|
||||
}
|
||||
if (frame->events) {
|
||||
dec->priv->pending_events =
|
||||
g_list_concat (dec->priv->pending_events, frame->events);
|
||||
frame->events = NULL;
|
||||
}
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (dec);
|
||||
|
||||
/* unref because this function takes ownership */
|
||||
|
|
Loading…
Reference in a new issue