gtk-demo: Enable offload in the video player

This commit is contained in:
Matthias Clasen 2023-11-02 09:50:43 +00:00
parent e2e7c931c5
commit d32ab7544d

View File

@ -139,6 +139,7 @@ do_video_player (GtkWidget *do_widget)
video = gtk_video_new ();
gtk_video_set_autoplay (GTK_VIDEO (video), TRUE);
gtk_video_set_graphics_offload (GTK_VIDEO (video), GTK_GRAPHICS_OFFLOAD_ENABLED);
gtk_window_set_child (GTK_WINDOW (window), video);
title = gtk_header_bar_new ();