mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
video: When autoplaying, start playing once the video is prepared
This fixe video sources with longer loading times not automatically playing.
This commit is contained in:
parent
2a8f371643
commit
d6f288427a
@ -545,6 +545,11 @@ gtk_video_notify_cb (GtkMediaStream *stream,
|
||||
gtk_video_update_error (self);
|
||||
if (g_str_equal (pspec->name, "playing"))
|
||||
gtk_video_update_playing (self);
|
||||
if (g_str_equal (pspec->name, "prepared"))
|
||||
{
|
||||
if (self->autoplay && gtk_media_stream_is_prepared (stream))
|
||||
gtk_media_stream_play (stream);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user