summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-12-23 09:50:13 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-12-23 09:51:05 +0100
commitc4e5423f3b6cc346dd14f52f6a982e17cf932d12 (patch)
treea68f685f0dbaa6f69f9ec94ae22eec1ddde3b802
parentebf6de33d2744fd68f6273e6f66dce94b8c3f552 (diff)
downloadgstreamer-plugins-bad-c4e5423f3b6cc346dd14f52f6a982e17cf932d12.tar.gz
glmemorypbo: Comment out unused functions to fix compilation with clang
It's not clear if these are intentionally unused or the code should be changed, but this fixes compilation for the time being at least. See https://bugzilla.gnome.org/show_bug.cgi?id=759679
-rw-r--r--gst-libs/gst/gl/gstglmemorypbo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglmemorypbo.c b/gst-libs/gst/gl/gstglmemorypbo.c
index 90f0553a0..f2ac6d8be 100644
--- a/gst-libs/gst/gl/gstglmemorypbo.c
+++ b/gst-libs/gst/gl/gstglmemorypbo.c
@@ -56,7 +56,11 @@
#define USING_GLES2(context) (gst_gl_context_check_gl_version (context, GST_GL_API_GLES2, 2, 0))
#define USING_GLES3(context) (gst_gl_context_check_gl_version (context, GST_GL_API_GLES2, 3, 0))
+/* FIXME: Unused, see https://bugzilla.gnome.org/show_bug.cgi?id=759679 */
+#if 0
#define GL_MEM_WIDTH(gl_mem) _get_plane_width (&gl_mem->mem.info, gl_mem->mem.plane)
+#endif
+
#define GL_MEM_HEIGHT(gl_mem) _get_plane_height (&gl_mem->mem.info, gl_mem->mem.plane)
#define GL_MEM_STRIDE(gl_mem) GST_VIDEO_INFO_PLANE_STRIDE (&gl_mem->mem.info, gl_mem->mem.plane)
@@ -119,6 +123,8 @@ typedef struct
gboolean result;
} GstGLMemoryPBOCopyParams;
+/* FIXME: Unused, see https://bugzilla.gnome.org/show_bug.cgi?id=759679 */
+#if 0
static inline guint
_get_plane_width (GstVideoInfo * info, guint plane)
{
@@ -130,6 +136,7 @@ _get_plane_width (GstVideoInfo * info, guint plane)
else /* RGB, GRAY */
return GST_VIDEO_INFO_WIDTH (info);
}
+#endif
static inline guint
_get_plane_height (GstVideoInfo * info, guint plane)