mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player: gtk: Only go to PLAYING with the next file if we were in PLAYING state before
Otherwise setting a subtitle URI in PAUSED will automatically go to PLAYING.
This commit is contained in:
parent
91379afe55
commit
b647f6858a
1 changed files with 5 additions and 1 deletions
|
@ -175,7 +175,10 @@ play_current_uri (GtkPlay * play, GList * uri, const gchar * ext_suburi)
|
|||
else
|
||||
gst_player_set_uri (play->player, uri->data);
|
||||
play->current_uri = uri;
|
||||
gst_player_play (play->player);
|
||||
if (play->playing)
|
||||
gst_player_play (play->player);
|
||||
else
|
||||
gst_player_pause (play->player);
|
||||
set_title (play, uri->data);
|
||||
}
|
||||
|
||||
|
@ -1509,6 +1512,7 @@ main (gint argc, gchar ** argv)
|
|||
g_signal_connect (play.player, "media-info-updated",
|
||||
G_CALLBACK (media_info_updated_cb), &play);
|
||||
|
||||
play.playing = TRUE;
|
||||
play_current_uri (&play, g_list_first (play.uris), NULL);
|
||||
|
||||
gtk_main ();
|
||||
|
|
Loading…
Reference in a new issue