mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
gstreamer: Use the default display if needed
Calling gtk_media_stream_realize is not mandatory, but we can still try to make dmabufs happen. Tested by removing the realize call from GtkVideo and using GDK_DISABLE=gl.
This commit is contained in:
parent
24f2540ba5
commit
0128aa9ead
@ -137,7 +137,10 @@ gtk_gst_paintable_video_renderer_create_video_sink (GstPlayerVideoRenderer *rend
|
||||
GdkGLContext *ctx;
|
||||
GdkDisplay *display;
|
||||
|
||||
display = self->surface ? gdk_surface_get_display (self->surface) : NULL;
|
||||
if (self->surface)
|
||||
display = gdk_surface_get_display (self->surface);
|
||||
else
|
||||
display = gdk_display_get_default ();
|
||||
|
||||
sink = g_object_new (GTK_TYPE_GST_SINK,
|
||||
"paintable", self,
|
||||
|
Loading…
Reference in New Issue
Block a user