mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
videodecoder: keep event order
Since events are pushed out in reverse order, newer events need to be added at the front of event lists https://bugzilla.gnome.org/show_bug.cgi?id=794192
This commit is contained in:
parent
56ab7e0e1d
commit
41c6efb9ff
1 changed files with 3 additions and 3 deletions
|
@ -2629,7 +2629,7 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder *
|
||||||
GstVideoCodecFrame *tmp = l->data;
|
GstVideoCodecFrame *tmp = l->data;
|
||||||
|
|
||||||
if (tmp->events) {
|
if (tmp->events) {
|
||||||
events = g_list_concat (events, tmp->events);
|
events = g_list_concat (tmp->events, events);
|
||||||
tmp->events = NULL;
|
tmp->events = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2640,7 +2640,7 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder *
|
||||||
if (dropping || !decoder->priv->output_state) {
|
if (dropping || !decoder->priv->output_state) {
|
||||||
/* Push before the next frame that is not dropped */
|
/* Push before the next frame that is not dropped */
|
||||||
decoder->priv->pending_events =
|
decoder->priv->pending_events =
|
||||||
g_list_concat (decoder->priv->pending_events, events);
|
g_list_concat (events, decoder->priv->pending_events);
|
||||||
} else {
|
} else {
|
||||||
gst_video_decoder_push_event_list (decoder, decoder->priv->pending_events);
|
gst_video_decoder_push_event_list (decoder, decoder->priv->pending_events);
|
||||||
decoder->priv->pending_events = NULL;
|
decoder->priv->pending_events = NULL;
|
||||||
|
@ -2822,7 +2822,7 @@ gst_video_decoder_release_frame (GstVideoDecoder * dec,
|
||||||
}
|
}
|
||||||
if (frame->events) {
|
if (frame->events) {
|
||||||
dec->priv->pending_events =
|
dec->priv->pending_events =
|
||||||
g_list_concat (dec->priv->pending_events, frame->events);
|
g_list_concat (frame->events, dec->priv->pending_events);
|
||||||
frame->events = NULL;
|
frame->events = NULL;
|
||||||
}
|
}
|
||||||
GST_VIDEO_DECODER_STREAM_UNLOCK (dec);
|
GST_VIDEO_DECODER_STREAM_UNLOCK (dec);
|
||||||
|
|
Loading…
Reference in a new issue