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.
This commit is contained in:
Benjamin Otte 2003-04-15 18:46:09 +00:00
parent 6cb527fed3
commit 4bf4de13ed
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);