summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-01-24 13:29:07 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-01-24 13:32:20 +0000
commite1c319949d19cbc01a897065f143149b313a1693 (patch)
treecc842387e22bfee59209ae94dce3a39de4a72bf9
parent1652005f266479821aa9905bc573e9477fc5acf1 (diff)
oggdemux: fix crash when freeing headers
Use _ogg_packet_free() instead of gst_mini_object_unref in one more place now that the header list contains ogg packets and not buffers. file: Stephen_Fry-Happy_Birthday_GNU-nq_600px_425kbit.ogv
-rw-r--r--ext/ogg/gstoggdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 98a114009..f6a58c5ba 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -752,7 +752,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
pad->map.n_header_packets_seen = 0;
if (!pad->map.have_headers) {
GST_DEBUG_OBJECT (ogg, "clearing header packets");
- g_list_foreach (pad->map.headers, (GFunc) gst_mini_object_unref, NULL);
+ g_list_foreach (pad->map.headers, (GFunc) _ogg_packet_free, NULL);
g_list_free (pad->map.headers);
pad->map.headers = NULL;
}