mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Constify some static arrays everywhere
This commit is contained in:
parent
dd928efa51
commit
39e719fb33
2 changed files with 9 additions and 9 deletions
|
@ -77,9 +77,9 @@ static void gst_gl_filter_reflected_screen_draw_separated_screen (GstGLFilter *
|
|||
static void gst_gl_filter_reflected_screen_callback (gint width, gint height,
|
||||
guint texture, gpointer stuff);
|
||||
|
||||
static GLfloat LightPos[] = { 4.0f, -4.0f, 6.0f, 1.0f }; // Light Position
|
||||
static GLfloat LightAmb[] = { 4.0f, 4.0f, 4.0f, 1.0f }; // Ambient Light
|
||||
static GLfloat LightDif[] = { 1.0f, 1.0f, 1.0f, 1.0f }; // Diffuse Light
|
||||
static const GLfloat LightPos[] = { 4.0f, -4.0f, 6.0f, 1.0f }; // Light Position
|
||||
static const GLfloat LightAmb[] = { 4.0f, 4.0f, 4.0f, 1.0f }; // Ambient Light
|
||||
static const GLfloat LightDif[] = { 1.0f, 1.0f, 1.0f, 1.0f }; // Diffuse Light
|
||||
|
||||
static void
|
||||
gst_gl_filter_reflected_screen_class_init (GstGLFilterReflectedScreenClass *
|
||||
|
|
|
@ -63,7 +63,7 @@ struct _GstGLUploadPrivate
|
|||
|
||||
GstBuffer *outbuf;
|
||||
|
||||
UploadMethod *method;
|
||||
const UploadMethod *method;
|
||||
gpointer method_impl;
|
||||
int method_i;
|
||||
};
|
||||
|
@ -169,7 +169,7 @@ _gl_memory_upload_free (gpointer impl)
|
|||
g_free (impl);
|
||||
}
|
||||
|
||||
static UploadMethod _gl_memory_upload = {
|
||||
static const UploadMethod _gl_memory_upload = {
|
||||
"GLMemory",
|
||||
METHOD_FLAG_CAN_SHARE_CONTEXT,
|
||||
&_gl_memory_upload_new,
|
||||
|
@ -281,7 +281,7 @@ _egl_image_upload_free (gpointer impl)
|
|||
g_free (impl);
|
||||
}
|
||||
|
||||
static UploadMethod _egl_image_upload = {
|
||||
static const UploadMethod _egl_image_upload = {
|
||||
"EGLImage",
|
||||
0,
|
||||
&_egl_image_upload_new,
|
||||
|
@ -433,7 +433,7 @@ _upload_meta_upload_free (gpointer impl)
|
|||
g_free (upload);
|
||||
}
|
||||
|
||||
static UploadMethod _upload_meta_upload = {
|
||||
static const UploadMethod _upload_meta_upload = {
|
||||
"UploadMeta",
|
||||
METHOD_FLAG_CAN_SHARE_CONTEXT,
|
||||
&_upload_meta_upload_new,
|
||||
|
@ -536,7 +536,7 @@ _raw_data_upload_free (gpointer impl)
|
|||
g_free (raw);
|
||||
}
|
||||
|
||||
static UploadMethod _raw_data_upload = {
|
||||
static const UploadMethod _raw_data_upload = {
|
||||
"Raw Data",
|
||||
0,
|
||||
&_raw_data_upload_new,
|
||||
|
@ -546,7 +546,7 @@ static UploadMethod _raw_data_upload = {
|
|||
&_raw_data_upload_free
|
||||
};
|
||||
|
||||
static UploadMethod *upload_methods[] = { &_gl_memory_upload,
|
||||
static const UploadMethod *upload_methods[] = { &_gl_memory_upload,
|
||||
#if GST_GL_HAVE_PLATFORM_EGL
|
||||
&_egl_image_upload,
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue