mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtprtxqueue: reverse pending list before pushing buffers
With this we send the RTX buffers in the same order that they were requested. https://bugzilla.gnome.org/show_bug.cgi?id=751297
This commit is contained in:
parent
212f39ee1d
commit
40957a9212
1 changed files with 2 additions and 0 deletions
|
@ -276,6 +276,7 @@ gst_rtp_rtx_queue_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
||||||
rtx->pending = NULL;
|
rtx->pending = NULL;
|
||||||
g_mutex_unlock (&rtx->lock);
|
g_mutex_unlock (&rtx->lock);
|
||||||
|
|
||||||
|
pending = g_list_reverse (pending);
|
||||||
g_list_foreach (pending, (GFunc) do_push, rtx);
|
g_list_foreach (pending, (GFunc) do_push, rtx);
|
||||||
g_list_free (pending);
|
g_list_free (pending);
|
||||||
|
|
||||||
|
@ -312,6 +313,7 @@ gst_rtp_rtx_queue_chain_list (GstPad * pad, GstObject * parent,
|
||||||
rtx->pending = NULL;
|
rtx->pending = NULL;
|
||||||
g_mutex_unlock (&rtx->lock);
|
g_mutex_unlock (&rtx->lock);
|
||||||
|
|
||||||
|
pending = g_list_reverse (pending);
|
||||||
g_list_foreach (pending, (GFunc) do_push, rtx);
|
g_list_foreach (pending, (GFunc) do_push, rtx);
|
||||||
g_list_free (pending);
|
g_list_free (pending);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue