ext/ogg/gstoggmux.c: Unref all buffers when clearing collectpads. Fixes bug #546955.

Original commit message from CVS:
Patch by: Daniel Drake <dsd at laptop dot org>
* ext/ogg/gstoggmux.c: (gst_ogg_mux_clear_collectpads):
Unref all buffers when clearing collectpads. Fixes bug #546955.
This commit is contained in:
Daniel Drake 2008-10-08 12:12:01 +00:00 committed by Sebastian Dröge
parent 93f2eaa98c
commit 43e1dcbd18
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-10-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Daniel Drake <dsd at laptop dot org>
* ext/ogg/gstoggmux.c: (gst_ogg_mux_clear_collectpads):
Unref all buffers when clearing collectpads. Fixes bug #546955.
2008-10-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Based on a patch by: Klaas <klaas at rivercrew dot net>

View file

@ -1613,6 +1613,15 @@ gst_ogg_mux_clear_collectpads (GstCollectPads * collect)
}
g_queue_free (oggpad->pagebuffers);
oggpad->pagebuffers = NULL;
if (oggpad->buffer) {
gst_buffer_unref (oggpad->buffer);
oggpad->buffer = NULL;
}
if (oggpad->next_buffer) {
gst_buffer_unref (oggpad->next_buffer);
oggpad->next_buffer = NULL;
}
}
}