From 40957a92127a913d61295be629f72c72f83548c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miguel=20Par=C3=ADs=20D=C3=ADaz?= Date: Fri, 19 Jun 2015 14:50:59 +0200 Subject: [PATCH] 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 --- gst/rtpmanager/gstrtprtxqueue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtpmanager/gstrtprtxqueue.c b/gst/rtpmanager/gstrtprtxqueue.c index 8e98543..0566f74 100644 --- a/gst/rtpmanager/gstrtprtxqueue.c +++ b/gst/rtpmanager/gstrtprtxqueue.c @@ -276,6 +276,7 @@ gst_rtp_rtx_queue_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) rtx->pending = NULL; g_mutex_unlock (&rtx->lock); + pending = g_list_reverse (pending); g_list_foreach (pending, (GFunc) do_push, rtx); g_list_free (pending); @@ -312,6 +313,7 @@ gst_rtp_rtx_queue_chain_list (GstPad * pad, GstObject * parent, rtx->pending = NULL; g_mutex_unlock (&rtx->lock); + pending = g_list_reverse (pending); g_list_foreach (pending, (GFunc) do_push, rtx); g_list_free (pending); -- 2.7.4