mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
63a26ed519
commit
94e18e2256
2 changed files with 11 additions and 3 deletions
|
@ -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>
|
2007-04-02 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/random/ensonic/dynlink.txt:
|
* docs/random/ensonic/dynlink.txt:
|
||||||
|
|
|
@ -407,12 +407,12 @@ gst_multi_queue_release_pad (GstElement * element, GstPad * pad)
|
||||||
|
|
||||||
/* delete SingleQueue */
|
/* delete SingleQueue */
|
||||||
gst_data_queue_set_flushing (sq->queue, TRUE);
|
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->srcpad);
|
||||||
gst_element_remove_pad (element, sq->sinkpad);
|
gst_element_remove_pad (element, sq->sinkpad);
|
||||||
|
gst_single_queue_free (sq);
|
||||||
|
|
||||||
/* FIXME : recompute next-non-linked */
|
/* FIXME : recompute next-non-linked */
|
||||||
GST_MULTI_QUEUE_MUTEX_UNLOCK (mqueue);
|
GST_MULTI_QUEUE_MUTEX_UNLOCK (mqueue);
|
||||||
|
|
Loading…
Reference in a new issue