From: Benjamin Otte Date: Tue, 15 Apr 2003 18:46:09 +0000 (+0000) Subject: Ouch: gst_element_dispose does a state change to NULL. Change the state to NULL yours... X-Git-Tag: BRANCH-ERROR-ROOT~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bf4de13ed8a97b3368337491a8abcd7f988a62a;p=platform%2Fupstream%2Fgstreamer.git Ouch: gst_element_dispose does a state change to NULL. Change the state to NULL yourself if you dispose plugins that ... Original commit message from CVS: Ouch: gst_element_dispose does a state change to NULL. Change the state to NULL yourself if you dispose plugins that reference some of the freed memory on state changes. This is probably broken in lots of cases. --- diff --git a/gst/gstqueue.c b/gst/gstqueue.c index a24dcb6..a2c56cd 100644 --- a/gst/gstqueue.c +++ b/gst/gstqueue.c @@ -251,7 +251,7 @@ gst_queue_dispose (GObject *object) { GstQueue *queue = GST_QUEUE (object); - gst_queue_locked_flush (queue); + gst_element_set_state (GST_ELEMENT (queue), GST_STATE_NULL); g_mutex_free (queue->qlock); g_cond_free (queue->not_empty); diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index a24dcb6..a2c56cd 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -251,7 +251,7 @@ gst_queue_dispose (GObject *object) { GstQueue *queue = GST_QUEUE (object); - gst_queue_locked_flush (queue); + gst_element_set_state (GST_ELEMENT (queue), GST_STATE_NULL); g_mutex_free (queue->qlock); g_cond_free (queue->not_empty);