diff options
| author | Torsten Jager <t.jager@gmx.de> | 2014-03-08 15:11:20 +0100 |
|---|---|---|
| committer | Torsten Jager <t.jager@gmx.de> | 2014-03-08 15:11:20 +0100 |
| commit | 51f379ba834dbc5bca0007ef4f3793a7d650ae78 (patch) | |
| tree | eefd43701262de0796829e620a06edd3d99a74fe /src/libw32dll | |
| parent | 382cfb6b3428cbf948acc98b32efdab497c57001 (diff) | |
| download | xine-lib-51f379ba834dbc5bca0007ef4f3793a7d650ae78.tar.gz xine-lib-51f379ba834dbc5bca0007ef4f3793a7d650ae78.tar.bz2 | |
Silence some compiler warnings.
Diffstat (limited to 'src/libw32dll')
| -rw-r--r-- | src/libw32dll/common.c | 4 | ||||
| -rw-r--r-- | src/libw32dll/w32codec.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libw32dll/common.c b/src/libw32dll/common.c index 76c114bca..6b5268a70 100644 --- a/src/libw32dll/common.c +++ b/src/libw32dll/common.c @@ -5,7 +5,7 @@ static char *get_win32_codecs_path(config_values_t *cfg) { DIR *dir; char *path, *cfgpath; - char *listpath[] = { "", + const char *listpath[] = { "", "/usr/lib/codecs", "/usr/local/lib/codecs", "/usr/lib/win32", @@ -25,7 +25,7 @@ static char *get_win32_codecs_path(config_values_t *cfg) { while (listpath[i]) { if (i == 0) path = cfgpath; - else path = listpath[i]; + else path = (char *)listpath[i]; if ((dir = opendir(path)) != NULL) { closedir(dir); diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c index e4e73b8fb..19420af19 100644 --- a/src/libw32dll/w32codec.c +++ b/src/libw32dll/w32codec.c @@ -341,7 +341,7 @@ static int get_vids_codec_n_name(w32v_decoder_t *this, int buf_type) return 0; } -static char* get_vids_codec_name(w32v_decoder_t *this, +static const char * get_vids_codec_name(w32v_decoder_t *this, int buf_type, int n) { this->yuv_supported=0; @@ -801,7 +801,7 @@ static void w32v_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { int i; for (i = 1; i <= num_decoders; i++) { - win32_codec_name = get_vids_codec_name (this, buf->type, i); + win32_codec_name = (char *)get_vids_codec_name (this, buf->type, i); if( this->driver_type == DRIVER_STD ) w32v_init_codec (this, buf->type); @@ -1072,7 +1072,7 @@ static void w32v_dispose (video_decoder_t *this_gen) { * audio stuff */ -static char* get_auds_codec_name(w32a_decoder_t *this, int buf_type) { +static const char * get_auds_codec_name(w32a_decoder_t *this, int buf_type) { buf_type = buf_type & 0xFFFF0000; this->driver_type = DRIVER_STD; @@ -1206,7 +1206,7 @@ static int w32a_init_audio (w32a_decoder_t *this, wf.cbSize = 0; this->ldt_fs = Setup_LDT_Keeper(); - win32_codec_name = get_auds_codec_name (this, buftype); + win32_codec_name = (char *)get_auds_codec_name (this, buftype); if( this->driver_type == DRIVER_STD ) { |
