mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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
This commit is contained in:
parent
ebf6de33d2
commit
c4e5423f3b
1 changed files with 7 additions and 0 deletions
|
@ -56,7 +56,11 @@
|
||||||
#define USING_GLES2(context) (gst_gl_context_check_gl_version (context, GST_GL_API_GLES2, 2, 0))
|
#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))
|
#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)
|
#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_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)
|
#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;
|
gboolean result;
|
||||||
} GstGLMemoryPBOCopyParams;
|
} GstGLMemoryPBOCopyParams;
|
||||||
|
|
||||||
|
/* FIXME: Unused, see https://bugzilla.gnome.org/show_bug.cgi?id=759679 */
|
||||||
|
#if 0
|
||||||
static inline guint
|
static inline guint
|
||||||
_get_plane_width (GstVideoInfo * info, guint plane)
|
_get_plane_width (GstVideoInfo * info, guint plane)
|
||||||
{
|
{
|
||||||
|
@ -130,6 +136,7 @@ _get_plane_width (GstVideoInfo * info, guint plane)
|
||||||
else /* RGB, GRAY */
|
else /* RGB, GRAY */
|
||||||
return GST_VIDEO_INFO_WIDTH (info);
|
return GST_VIDEO_INFO_WIDTH (info);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline guint
|
static inline guint
|
||||||
_get_plane_height (GstVideoInfo * info, guint plane)
|
_get_plane_height (GstVideoInfo * info, guint plane)
|
||||||
|
|
Loading…
Reference in a new issue