mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
93f2eaa98c
commit
43e1dcbd18
2 changed files with 16 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue