Merge branch 'matthiasc/for-master' into 'master'

video: Pause on unset too

See merge request GNOME/gtk!3025
This commit is contained in:
Matthias Clasen 2021-01-02 15:49:46 +00:00
commit 384081ce0a

View File

@ -593,6 +593,8 @@ gtk_video_set_media_stream (GtkVideo *self,
if (self->media_stream)
{
if (self->autoplay)
gtk_media_stream_pause (self->media_stream);
g_signal_handlers_disconnect_by_func (self->media_stream,
gtk_video_notify_cb,
self);