diff options
| author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2012-01-18 19:54:34 +0000 |
|---|---|---|
| committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2012-01-18 19:54:34 +0000 |
| commit | 3119dd2de36dbd8bb9af95ab1826c15f3099b597 (patch) | |
| tree | 76b0324c6e93b86550e63ad02f1154580ce79526 /src/video_out | |
| parent | 7366cab446742882341e4a5304527e8b1a6965eb (diff) | |
| parent | cb6e4b4ffd49cdef83c6d025f175cf6a79705fc8 (diff) | |
| download | xine-lib-3119dd2de36dbd8bb9af95ab1826c15f3099b597.tar.gz xine-lib-3119dd2de36dbd8bb9af95ab1826c15f3099b597.tar.bz2 | |
Merge.
Diffstat (limited to 'src/video_out')
| -rw-r--r-- | src/video_out/video_out_fb.c | 5 | ||||
| -rw-r--r-- | src/video_out/video_out_opengl.c | 8 | ||||
| -rw-r--r-- | src/video_out/video_out_xcbshm.c | 2 | ||||
| -rw-r--r-- | src/video_out/video_out_xcbxv.c | 12 | ||||
| -rw-r--r-- | src/video_out/video_out_xshm.c | 5 | ||||
| -rw-r--r-- | src/video_out/video_out_xv.c | 4 | ||||
| -rw-r--r-- | src/video_out/video_out_xvmc.c | 2 | ||||
| -rw-r--r-- | src/video_out/video_out_xxmc.c | 4 |
8 files changed, 20 insertions, 22 deletions
diff --git a/src/video_out/video_out_fb.c b/src/video_out/video_out_fb.c index cfc5cf3a6..0d4376336 100644 --- a/src/video_out/video_out_fb.c +++ b/src/video_out/video_out_fb.c @@ -54,9 +54,6 @@ #include <sys/stat.h> #include <fcntl.h> -#include "xine.h" -#include <xine/video_out.h> - #include <errno.h> #include <sys/ipc.h> @@ -84,6 +81,8 @@ #define LOG */ +#include "xine.h" +#include <xine/video_out.h> #include <xine/xine_internal.h> #include "yuv2rgb.h" #include <xine/xineutils.h> diff --git a/src/video_out/video_out_opengl.c b/src/video_out/video_out_opengl.c index 5d8b60651..d00a916e1 100644 --- a/src/video_out/video_out_opengl.c +++ b/src/video_out/video_out_opengl.c @@ -229,7 +229,7 @@ typedef void *(*thread_run_t)(void *); typedef struct { /* Name of render backend */ - char *name; + const char * const name; /* Finally display current image (needed for Redraw) */ void (*display)(opengl_driver_t *, opengl_frame_t *); /* Upload new image; Returns 0 if failed */ @@ -678,7 +678,7 @@ static int render_image_envtex (opengl_driver_t *this, opengl_frame_t *frame) { /* * Render setup functions */ -static int render_help_verify_ext (opengl_driver_t *this, char *ext) { +static int render_help_verify_ext (opengl_driver_t *this, const char *ext) { int ret = 0; const size_t l = strlen (ext); const char *e; @@ -929,7 +929,7 @@ static int render_setup_torus (opengl_driver_t *this) { static int render_setup_fp_yuv (opengl_driver_t *this) { GLint errorpos; int ret; - static char *fragprog_yuv = + static const char *fragprog_yuv = "!!ARBfp1.0\n" "ATTRIB tex = fragment.texcoord[0];" "PARAM off = program.env[0];" @@ -1823,7 +1823,7 @@ static vo_driver_t *opengl_open_plugin (video_driver_class_t *class_gen, const v config_values_t *config = class->xine->config; x11_visual_t *visual = (x11_visual_t *) visual_gen; opengl_driver_t *this; - char **render_fun_names; + const char **render_fun_names; int i; this = (opengl_driver_t *) calloc(1, sizeof(opengl_driver_t)); diff --git a/src/video_out/video_out_xcbshm.c b/src/video_out/video_out_xcbshm.c index abc1f8b73..eb211e75d 100644 --- a/src/video_out/video_out_xcbshm.c +++ b/src/video_out/video_out_xcbshm.c @@ -864,7 +864,7 @@ static int xshm_gui_data_exchange (vo_driver_t *this_gen, break; case XINE_GUI_SEND_DRAWABLE_CHANGED: - this->window = (xcb_window_t) data; + this->window = (xcb_window_t) (long) data; pthread_mutex_lock(&this->main_mutex); xcb_free_gc(this->connection, this->gc); diff --git a/src/video_out/video_out_xcbxv.c b/src/video_out/video_out_xcbxv.c index a07864e8e..f098ceed8 100644 --- a/src/video_out/video_out_xcbxv.c +++ b/src/video_out/video_out_xcbxv.c @@ -826,7 +826,7 @@ static int xv_gui_data_exchange (vo_driver_t *this_gen, case XINE_GUI_SEND_DRAWABLE_CHANGED: pthread_mutex_lock(&this->main_mutex); - this->window = (xcb_window_t) data; + this->window = (xcb_window_t) (long) data; xcb_free_gc(this->connection, this->gc); this->gc = xcb_generate_id(this->connection); xcb_create_gc(this->connection, this->gc, this->window, 0, NULL); @@ -973,9 +973,9 @@ static int xv_check_yv12(xcb_connection_t *connection, xcb_xv_port_t port) { static void xv_check_capability (xv_driver_t *this, int property, xcb_xv_attribute_info_t *attr, int base_id, - char *config_name, - char *config_desc, - char *config_help) { + const char *config_name, + const char *config_desc, + const char *config_help) { int int_default; cfg_entry_t *entry; const char *str_prop = xcb_xv_attribute_info_name(attr); @@ -1218,8 +1218,8 @@ static vo_driver_t *open_plugin(video_driver_class_t *class_gen, const void *vis if (xv_port != 0) { if (! xv_open_port(this, xv_port)) { xprintf(class->xine, XINE_VERBOSITY_NONE, - _("%s: could not open Xv port %d - autodetecting\n"), - LOG_MODULE, xv_port); + _("%s: could not open Xv port %lu - autodetecting\n"), + LOG_MODULE, (unsigned long)xv_port); adaptor_it = adaptor_first; xv_port = xv_autodetect_port (this, &adaptor_it, xv_port, prefer_type); } else diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c index 675575e80..5dfc2c34e 100644 --- a/src/video_out/video_out_xshm.c +++ b/src/video_out/video_out_xshm.c @@ -34,9 +34,6 @@ #include <string.h> #include <math.h> -#include "xine.h" -#include <xine/video_out.h> - #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> @@ -63,6 +60,8 @@ #define LOG */ +#include "xine.h" +#include <xine/video_out.h> #include <xine/xine_internal.h> #include "yuv2rgb.h" #include <xine/xineutils.h> diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 59ba3cbfe..edff2905a 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -1262,8 +1262,8 @@ static vo_driver_t *open_plugin_2 (video_driver_class_t *class_gen, const void * if (xv_port != 0) { if (! xv_open_port(this, xv_port)) { xprintf(class->xine, XINE_VERBOSITY_NONE, - _("%s: could not open Xv port %d - autodetecting\n"), - LOG_MODULE, xv_port); + _("%s: could not open Xv port %lu - autodetecting\n"), + LOG_MODULE, (unsigned long)xv_port); xv_port = xv_autodetect_port(this, adaptors, adaptor_info, &adaptor_num, xv_port, prefer_type); } else adaptor_num = xv_find_adaptor_by_port (xv_port, adaptors, adaptor_info); diff --git a/src/video_out/video_out_xvmc.c b/src/video_out/video_out_xvmc.c index f3321e929..3158840a0 100644 --- a/src/video_out/video_out_xvmc.c +++ b/src/video_out/video_out_xvmc.c @@ -783,7 +783,7 @@ static void xvmc_update_frame_format (vo_driver_t *this_gen, frame->ratio = ratio; } - xvmc->macroblocks = (xine_macroblocks_t *)&this->macroblocks; + xvmc->macroblocks = &this->macroblocks.xine_mc; this->macroblocks.num_blocks = 0; this->macroblocks.macroblockptr = this->macroblocks.macroblockbaseptr; this->macroblocks.xine_mc.blockptr = diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c index e35ce5f12..14fcbce97 100644 --- a/src/video_out/video_out_xxmc.c +++ b/src/video_out/video_out_xxmc.c @@ -2494,8 +2494,8 @@ static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *vi if (xv_port != 0) { if (! xxmc_open_port(this, xv_port)) { xprintf(class->xine, XINE_VERBOSITY_NONE, - _("%s: could not open Xv port %d - autodetecting\n"), - LOG_MODULE, xv_port); + _("%s: could not open Xv port %lu - autodetecting\n"), + LOG_MODULE, (unsigned long)xv_port); xv_port = xxmc_autodetect_port(this, adaptors, adaptor_info, &adaptor_num, xv_port, prefer_type); } else adaptor_num = xxmc_find_adaptor_by_port (xv_port, adaptors, adaptor_info); |
