mirror of https://github.com/mpv-player/mpv
get_path as const, patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18894 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a8e3cea4b3
commit
132173bbf0
|
@ -70,7 +70,7 @@ int evBoxs = sizeof( evNames ) / sizeof( evName );
|
|||
|
||||
// ---
|
||||
|
||||
extern char *get_path(char *);
|
||||
extern char *get_path(const char *);
|
||||
|
||||
listItems appMPlayer;
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ int gui_sub_pos_x = -1;
|
|||
int gui_sub_pos_y = -1;
|
||||
// ---
|
||||
|
||||
extern char * get_path( char * filename );
|
||||
extern char * get_path( const char * filename );
|
||||
extern int flip;
|
||||
extern int frame_dropping;
|
||||
extern int stop_xscreensaver;
|
||||
|
|
|
@ -142,7 +142,7 @@ extern guiInterface_t guiIntfStruct;
|
|||
#define guiFilenames 4
|
||||
#define guiALL 0xffffffff
|
||||
|
||||
extern char *get_path(char *filename);
|
||||
extern char *get_path(const char *filename);
|
||||
|
||||
extern void guiInit( void );
|
||||
extern void guiDone( void );
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <string.h>
|
||||
#endif
|
||||
|
||||
char *get_path(char *filename){
|
||||
char *get_path(const char *filename){
|
||||
char *homedir;
|
||||
char *buff;
|
||||
#if defined(__MINGW32__)
|
||||
|
|
|
@ -1562,7 +1562,7 @@ mp_input_parse_config(char *file) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
extern char *get_path(char *filename);
|
||||
extern char *get_path(const char *filename);
|
||||
|
||||
void
|
||||
mp_input_init(int use_gui) {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "af.h"
|
||||
|
||||
extern char * get_path( char * filename );
|
||||
extern char * get_path( const char * filename );
|
||||
|
||||
|
||||
#define DEF_SZ 512 // default buffer size (in samples)
|
||||
|
|
|
@ -199,7 +199,7 @@ int init_audio(sh_audio_t *sh_audio,char* codecname,char* afm,int status){
|
|||
return 0;
|
||||
}
|
||||
|
||||
extern char *get_path(char *filename);
|
||||
extern char *get_path(const char *filename);
|
||||
|
||||
int init_best_audio_codec(sh_audio_t *sh_audio,char** audio_codec_list,char** audio_fm_list){
|
||||
char* ac_l_default[2]={"",(char*)NULL};
|
||||
|
|
|
@ -251,7 +251,7 @@ int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status){
|
|||
return 0;
|
||||
}
|
||||
|
||||
extern char *get_path(char *filename);
|
||||
extern char *get_path(const char *filename);
|
||||
|
||||
int init_best_video_codec(sh_video_t *sh_video,char** video_codec_list,char** video_fm_list){
|
||||
char* vc_l_default[2]={"",(char*)NULL};
|
||||
|
|
|
@ -623,7 +623,7 @@ int dvb_step_channel(dvb_priv_t *priv, int dir)
|
|||
|
||||
|
||||
|
||||
extern char *get_path(char *);
|
||||
extern char *get_path(const char *);
|
||||
|
||||
static void dvbin_close(stream_t *stream)
|
||||
{
|
||||
|
|
|
@ -213,7 +213,7 @@ static int initAllCSSKeys( dvd_reader_t *dvd )
|
|||
#ifndef HAVE_MPLAYER
|
||||
#include "get_path.c"
|
||||
#else
|
||||
extern char * get_path( char * filename );
|
||||
extern char * get_path( const char * filename );
|
||||
#endif
|
||||
|
||||
//extern char * dvdcss_cache_dir;
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#define HAVE_FREETYPE21
|
||||
#endif
|
||||
|
||||
char *get_path(char *filename);
|
||||
char *get_path(const char *filename);
|
||||
|
||||
char *subtitle_font_encoding = NULL;
|
||||
float text_font_scale_factor = 5.0;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <dxr2ioctl.h>
|
||||
|
||||
|
||||
extern char *get_path(char *filename);
|
||||
extern char *get_path(const char *filename);
|
||||
|
||||
extern float monitor_aspect;
|
||||
extern float movie_aspect;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "qtxsdk/components.h"
|
||||
#include "qtxsdk/select.h"
|
||||
|
||||
char* get_path(char* x){ return strdup(x);}
|
||||
char* get_path(const char* x){ return strdup(x);}
|
||||
void* LoadLibraryA(char* name);
|
||||
void* GetProcAddress(void* handle,char* func);
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ ComponentResult ComponentDummy(
|
|||
return(0);
|
||||
}
|
||||
|
||||
char *get_path(char* x){ return strdup(x);}
|
||||
char *get_path(const char* x){ return strdup(x);}
|
||||
|
||||
void* LoadLibraryA(char* name);
|
||||
void* GetProcAddress(void* handle,char* func);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
//#undef TRACE
|
||||
//#define TRACE printf
|
||||
|
||||
extern char *get_path ( char * );
|
||||
extern char *get_path ( const char * );
|
||||
|
||||
// ...can be set before init_registry() call
|
||||
char* regpathname = NULL;
|
||||
|
|
Loading…
Reference in New Issue