summaryrefslogtreecommitdiff
path: root/src/video_out
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-08 01:12:44 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-08 01:12:44 +0100
commit3a233b827783151c4c08985224782f1dcce43a8f (patch)
tree5377813a1b3369d2700050df921ec0b33426b7f6 /src/video_out
parentf12149f0ca2743e6f5f9d39ba53b27c306137597 (diff)
downloadxine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.gz
xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.bz2
Mark various private arrays, structs & fn parameters as static and/or const.
Two of the modified files are headers, but each contains definitions as well as declarations and is only ever used once.
Diffstat (limited to 'src/video_out')
-rw-r--r--src/video_out/video_out_opengl.c4
-rw-r--r--src/video_out/video_out_xxmc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_out/video_out_opengl.c b/src/video_out/video_out_opengl.c
index b85bd3ccf..a027f2e06 100644
--- a/src/video_out/video_out_opengl.c
+++ b/src/video_out/video_out_opengl.c
@@ -966,7 +966,7 @@ static int render_setup_fp_yuv (opengl_driver_t *this) {
* List of render backends
*/
/* name, display, image, setup, needsrgb, defaction, fallback */
-opengl_render_t opengl_rb[] = {
+static const opengl_render_t opengl_rb[] = {
{ "2D_Tex_Fragprog", render_tex2d, render_image_fp_yuv,
render_setup_fp_yuv, 0, RENDER_NONE, 1 },
{ "2D_Tex", render_tex2d, render_image_tex,
@@ -1007,7 +1007,7 @@ static void *render_run (opengl_driver_t *this) {
opengl_frame_t *frame;
struct timeval curtime;
struct timespec timeout;
- opengl_render_t *render;
+ const opengl_render_t *render;
lprintf ("* render thread created\n");
while (1) {
diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c
index 0abe2f0fc..fd19f391b 100644
--- a/src/video_out/video_out_xxmc.c
+++ b/src/video_out/video_out_xxmc.c
@@ -54,7 +54,7 @@ static void dispose_ximage (xxmc_driver_t *this, XShmSegmentInfo *shminfo,
* is more efficient than VLD.
*/
-static unsigned accel_priority[] = {
+static const unsigned int accel_priority[] = {
#ifdef HAVE_VLDXVMC
XINE_XVMC_ACCEL_VLD,
#endif