summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-18 20:13:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-19 12:01:10 +0100
commit62d9d64c90eaf4b6d8ff20b615c5645e12a9cba9 (patch)
tree0cc8a756ab18873a430f2cf217f59536e4b9100b
parentcid#1500273 silence Dereference null return value (diff)
downloadcore-62d9d64c90eaf4b6d8ff20b615c5645e12a9cba9.tar.gz
core-62d9d64c90eaf4b6d8ff20b615c5645e12a9cba9.zip
gtk4: the assumption is that video is supposed to fit to the window
Change-Id: Iacc31ee978a1279c23ac895fb6f8fd610ab3113d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130176 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--avmedia/source/gtk/gtkplayer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/avmedia/source/gtk/gtkplayer.cxx b/avmedia/source/gtk/gtkplayer.cxx
index b01eaeeed630..ea6276e02a59 100644
--- a/avmedia/source/gtk/gtkplayer.cxx
+++ b/avmedia/source/gtk/gtkplayer.cxx
@@ -271,6 +271,7 @@ uno::Reference<::media::XPlayerWindow>
return nullptr;
m_pVideo = gtk_picture_new_for_paintable(GDK_PAINTABLE(m_pStream));
+ gtk_picture_set_keep_aspect_ratio(GTK_PICTURE(m_pVideo), false);
gtk_widget_set_vexpand(m_pVideo, true);
gtk_widget_set_hexpand(m_pVideo, true);