mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
This patch is now The Right Way(tm) to handle the stop button but at least it doesn't crash...
Original commit message from CVS: This patch is now The Right Way(tm) to handle the stop button but at least it doesn't crash...
This commit is contained in:
parent
e212377562
commit
44a7a49146
2 changed files with 5 additions and 3 deletions
|
@ -405,7 +405,8 @@
|
|||
<authors>Erik Walthinsen <omega@cse.ogi.edu>,
|
||||
Wim Taymans <wim.taymans@tvd.be>,
|
||||
Richard Boulton <richard@tartarus.org>,
|
||||
Chris Emerson (PPC port)
|
||||
Chris Emerson (PPC port),
|
||||
Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||
</authors>
|
||||
<comments>A generic media player for the gstreamer streaming media framework.</comments>
|
||||
</widget>
|
||||
|
|
|
@ -462,9 +462,10 @@ gst_play_stop (GstPlay *play)
|
|||
|
||||
priv = (GstPlayPrivate *)play->priv;
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_PAUSED);
|
||||
// FIXME until state changes are handled properly
|
||||
gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_READY);
|
||||
gtk_object_set (GTK_OBJECT (priv->src),"offset",0,NULL);
|
||||
gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_NULL);
|
||||
//gst_element_set_state (GST_ELEMENT (priv->thread),GST_STATE_NULL);
|
||||
|
||||
play->state = GST_PLAY_STOPPED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue