diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-13 01:56:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-13 01:56:56 -0400 |
commit | 30c3a533f4fc731cf11f8804648774198a1fe125 (patch) | |
tree | 1499cb6b734ec1a601db9f4ad9d060f8795be549 /gtk/gtkvideo.c | |
parent | 52304fe7daff45bffda3a42b1093e798630ddaa7 (diff) | |
download | gtk+-30c3a533f4fc731cf11f8804648774198a1fe125.tar.gz |
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().
Diffstat (limited to 'gtk/gtkvideo.c')
-rw-r--r-- | gtk/gtkvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |