From e212377562709bb68eebc28a4839acf1e1f8e5a3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 1 Apr 2001 13:51:46 +0000 Subject: [PATCH] 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.. --- gstplay/gstplay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gstplay/gstplay.c b/gstplay/gstplay.c index 6f0b651263..0b25d776cb 100644 --- a/gstplay/gstplay.c +++ b/gstplay/gstplay.c @@ -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;