plugins/elements/gstmultiqueue.c: Deactivate pads and free GstSingleQueue with gst_single_queue_free() when releasing...

Original commit message from CVS:
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
* plugins/elements/gstmultiqueue.c: (gst_multi_queue_release_pad):
Deactivate pads and free GstSingleQueue with gst_single_queue_free()
when releasing sink pad. Fixes #425400.
This commit is contained in:
Tommi Myöhänen 2007-04-03 11:02:41 +00:00 committed by Wim Taymans
parent 63a26ed519
commit 94e18e2256
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2007-04-03 Wim Taymans <wim@fluendo.com>
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
* plugins/elements/gstmultiqueue.c: (gst_multi_queue_release_pad):
Deactivate pads and free GstSingleQueue with gst_single_queue_free()
when releasing sink pad. Fixes #425400.
2007-04-02 Stefan Kost <ensonic@users.sf.net>
* docs/random/ensonic/dynlink.txt:

View file

@ -407,12 +407,12 @@ gst_multi_queue_release_pad (GstElement * element, GstPad * pad)
/* delete SingleQueue */
gst_data_queue_set_flushing (sq->queue, TRUE);
gst_data_queue_flush (sq->queue);
g_object_unref (G_OBJECT (sq->queue));
gst_pad_set_active (sq->srcpad, FALSE);
gst_pad_set_active (sq->sinkpad, FALSE);
gst_element_remove_pad (element, sq->srcpad);
gst_element_remove_pad (element, sq->sinkpad);
gst_single_queue_free (sq);
/* FIXME : recompute next-non-linked */
GST_MULTI_QUEUE_MUTEX_UNLOCK (mqueue);