glupload: don't determine if frame needs upload by pointer compare
authorWang Xin-yu (王昕宇) <comicfans44@gmail.com>
Wed, 6 Aug 2014 12:15:38 +0000 (08:15 -0400)
committerMatthew Waters <ystreet00@gmail.com>
Wed, 6 Aug 2014 04:51:59 +0000 (14:51 +1000)
https://bugzilla.gnome.org/show_bug.cgi?id=734269

gst-libs/gst/gl/gstglupload.c

index ed54dfe..133fdd5 100644 (file)
@@ -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);