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:
Wim Taymans 2001-04-01 13:51:46 +00:00
parent b32d520060
commit e212377562

View file

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