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:
Miguel París Díaz 2015-06-19 14:50:59 +02:00 committed by Sebastian Dröge
parent 212f39ee1d
commit 40957a9212

View file

@ -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);