[gtk/matthiasc/gl-media-stream: 27/27] Try to make GL buffers work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/gl-media-stream: 27/27] Try to make GL buffers work
- Date: Sat, 2 Jan 2021 04:33:42 +0000 (UTC)
commit bda67236e75503619ba58a6ad7edddc15d21bdeb
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 1 23:33:16 2021 -0500
Try to make GL buffers work
modules/media/gtkgstsink.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c
index e52f6288f5..d4720b5f07 100644
--- a/modules/media/gtkgstsink.c
+++ b/modules/media/gtkgstsink.c
@@ -257,8 +257,7 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self,
GstVideoFrame frame;
GdkTexture *texture;
- if (buffer->pool && GST_IS_GL_BUFFER_POOL (buffer->pool) &&
- gst_video_frame_map (&frame, &self->v_info, buffer, GST_MAP_READ | GST_MAP_GL))
+ if (gst_video_frame_map (&frame, &self->v_info, buffer, GST_MAP_READ | GST_MAP_GL))
{
texture = gdk_gl_texture_new (self->gdk_context,
*(guint *) frame.data[0],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]