[tap-rtp-common.c] Change g_list_append() to g_list_prepend().
authorAndersBroman <anders.broman@ericsson.com>
Mon, 4 Dec 2017 09:37:32 +0000 (10:37 +0100)
committerAnders Broman <a.broman58@gmail.com>
Mon, 4 Dec 2017 11:58:46 +0000 (11:58 +0000)
Change-Id: I6ecc6658f75056db55dc68497956019a52fad0e6
Reviewed-on: https://code.wireshark.org/review/24699
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
ui/tap-rtp-common.c

index 9d689fa2f48490623399c4a43461e0dc9ba14167..28fea44e249536947afb5cb5d20b759a6bb4181f 100644 (file)
@@ -237,7 +237,7 @@ int rtpstream_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt _U_, con
 
             stream_info = g_new(rtp_stream_info_t,1);
             *stream_info = new_stream_info;  /* memberwise copy of struct */
-            tapinfo->strinfo_list = g_list_append(tapinfo->strinfo_list, stream_info);
+            tapinfo->strinfo_list = g_list_prepend(tapinfo->strinfo_list, stream_info);
         }
 
         /* get RTP stats for the packet */