mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
6cb527fed3
commit
4bf4de13ed
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue