mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Reset the scheduler when going to NULL
Original commit message from CVS: Reset the scheduler when going to NULL
This commit is contained in:
parent
83bc63d787
commit
2dd7336e68
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,6 @@ gst_pipeline_dispose (GObject *object)
|
|||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
|
||||
if (GST_ELEMENT_SCHED (pipeline)) {
|
||||
gst_scheduler_reset (GST_ELEMENT_SCHED (pipeline));
|
||||
gst_object_unref (GST_OBJECT (GST_ELEMENT_SCHED (pipeline)));
|
||||
GST_ELEMENT_SCHED (pipeline) = NULL;
|
||||
}
|
||||
|
@ -153,7 +152,11 @@ gst_pipeline_change_state (GstElement *element)
|
|||
case GST_STATE_PAUSED_TO_PLAYING:
|
||||
case GST_STATE_PLAYING_TO_PAUSED:
|
||||
case GST_STATE_PAUSED_TO_READY:
|
||||
break;
|
||||
case GST_STATE_READY_TO_NULL:
|
||||
if (GST_ELEMENT_SCHED (element)) {
|
||||
gst_scheduler_reset (GST_ELEMENT_SCHED (element));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue