[gtk/matthiasc/for-master: 8/9] video: Make autoplay work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 8/9] video: Make autoplay work
- Date: Sun, 13 Sep 2020 06:33:42 +0000 (UTC)
commit 30c3a533f4fc731cf11f8804648774198a1fe125
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 13 01:56:56 2020 -0400
video: Make autoplay work
We were setting things up in the wrong order, so
autoplay had no effect when you using gtk_video_set_file().
gtk/gtkvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkvideo.c b/gtk/gtkvideo.c
index 70e741fdc1..d7c934f4e7 100644
--- a/gtk/gtkvideo.c
+++ b/gtk/gtkvideo.c
@@ -654,9 +654,9 @@ gtk_video_set_file (GtkVideo *self,
stream = gtk_media_file_new ();
- gtk_video_set_media_stream (self, stream);
if (gtk_widget_get_realized (GTK_WIDGET (self)))
gtk_media_file_set_file (GTK_MEDIA_FILE (stream), file);
+ gtk_video_set_media_stream (self, stream);
g_object_unref (stream);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]