mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
Slightly modified the _stop handling so that gstmediaplay crashes less viontly. The real problem is that going to the...
Original commit message from CVS: Slightly modified the _stop handling so that gstmediaplay crashes less viontly. The real problem is that going to the NULL state does not clean up the scheduling structures I think..
This commit is contained in:
parent
b32d520060
commit
e212377562
1 changed files with 2 additions and 1 deletions
|
@ -462,8 +462,9 @@ gst_play_stop (GstPlay *play)
|
|||
|
||||
priv = (GstPlayPrivate *)play->priv;
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_NULL);
|
||||
gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_PAUSED);
|
||||
gtk_object_set (GTK_OBJECT (priv->src),"offset",0,NULL);
|
||||
gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_NULL);
|
||||
|
||||
play->state = GST_PLAY_STOPPED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue