From 0b651caed5bacd4545bb7b420a3799c64e0fe6d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wang=20Xin-yu=20=28=E7=8E=8B=E6=98=95=E5=AE=87=29?= Date: Wed, 6 Aug 2014 08:15:38 -0400 Subject: [PATCH] glupload: don't determine if frame needs upload by pointer compare https://bugzilla.gnome.org/show_bug.cgi?id=734269 --- gst-libs/gst/gl/gstglupload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index ed54dfe..133fdd5 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -449,7 +449,7 @@ _gst_gl_upload_perform_with_data_unlocked (GstGLUpload * upload, upload->in_tex); for (i = 0; i < GST_VIDEO_MAX_PLANES; i++) { - if (upload->in_tex[i] && upload->in_tex[i]->data != data[i]) { + if (upload->in_tex[i]) { upload->in_tex[i]->data = data[i]; GST_GL_MEMORY_FLAG_SET (upload->in_tex[i], GST_GL_MEMORY_FLAG_NEED_UPLOAD); -- 2.7.4