mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-08 00:59:48 +00:00
player: Don't set state to READY if we're already stopped
Otherwise setting an URI after creation will already set the state to READY/buffering and disallow setting the configuration. See https://github.com/servo/servo/issues/22010
This commit is contained in:
parent
4a24739a14
commit
afbbc3a97e
1 changed files with 5 additions and 0 deletions
|
@ -3198,6 +3198,11 @@ gst_player_pause (GstPlayer * self)
|
|||
static void
|
||||
gst_player_stop_internal (GstPlayer * self, gboolean transient)
|
||||
{
|
||||
/* directly return if we're already stopped */
|
||||
if (self->current_state <= GST_STATE_READY &&
|
||||
self->target_state <= GST_STATE_READY)
|
||||
return;
|
||||
|
||||
GST_DEBUG_OBJECT (self, "Stop (transient %d)", transient);
|
||||
|
||||
tick_cb (self);
|
||||
|
|
Loading…
Reference in a new issue