r18894 - in trunk: Gui/app.c Gui/cfg.c Gui/interface.h get_path.c input/input.c libaf/af_export.c libmpcodecs/dec_audio.c libmpcodecs/dec_video.c libmpdemux/dvbin.c libmpdvdkit2/dvd_reader.c libvo/font_load_ft.c libvo/vo_dxr2.c loader/qtx/list.c loader/qtx/qtxload.c loader/registry.c
Author: reynaldo Date: Tue Jul 4 01:27:37 2006 New Revision: 18894 Modified: trunk/Gui/app.c trunk/Gui/cfg.c trunk/Gui/interface.h trunk/get_path.c trunk/input/input.c trunk/libaf/af_export.c trunk/libmpcodecs/dec_audio.c trunk/libmpcodecs/dec_video.c trunk/libmpdemux/dvbin.c trunk/libmpdvdkit2/dvd_reader.c trunk/libvo/font_load_ft.c trunk/libvo/vo_dxr2.c trunk/loader/qtx/list.c trunk/loader/qtx/qtxload.c trunk/loader/registry.c Log: get_path as const, patch by Stefan Huehner, stefan AT huehner-org Modified: trunk/Gui/app.c ============================================================================== --- trunk/Gui/app.c (original) +++ trunk/Gui/app.c Tue Jul 4 01:27:37 2006 @@ -70,7 +70,7 @@ // --- -extern char *get_path(char *); +extern char *get_path(const char *); listItems appMPlayer; Modified: trunk/Gui/cfg.c ============================================================================== --- trunk/Gui/cfg.c (original) +++ trunk/Gui/cfg.c Tue Jul 4 01:27:37 2006 @@ -75,7 +75,7 @@ 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; Modified: trunk/Gui/interface.h ============================================================================== --- trunk/Gui/interface.h (original) +++ trunk/Gui/interface.h Tue Jul 4 01:27:37 2006 @@ -142,7 +142,7 @@ #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 ); Modified: trunk/get_path.c ============================================================================== --- trunk/get_path.c (original) +++ trunk/get_path.c Tue Jul 4 01:27:37 2006 @@ -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__) Modified: trunk/input/input.c ============================================================================== --- trunk/input/input.c (original) +++ trunk/input/input.c Tue Jul 4 01:27:37 2006 @@ -1562,7 +1562,7 @@ return 0; } -extern char *get_path(char *filename); +extern char *get_path(const char *filename); void mp_input_init(int use_gui) { Modified: trunk/libaf/af_export.c ============================================================================== --- trunk/libaf/af_export.c (original) +++ trunk/libaf/af_export.c Tue Jul 4 01:27:37 2006 @@ -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) Modified: trunk/libmpcodecs/dec_audio.c ============================================================================== --- trunk/libmpcodecs/dec_audio.c (original) +++ trunk/libmpcodecs/dec_audio.c Tue Jul 4 01:27:37 2006 @@ -199,7 +199,7 @@ 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}; Modified: trunk/libmpcodecs/dec_video.c ============================================================================== --- trunk/libmpcodecs/dec_video.c (original) +++ trunk/libmpcodecs/dec_video.c Tue Jul 4 01:27:37 2006 @@ -251,7 +251,7 @@ 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}; Modified: trunk/libmpdemux/dvbin.c ============================================================================== --- trunk/libmpdemux/dvbin.c (original) +++ trunk/libmpdemux/dvbin.c Tue Jul 4 01:27:37 2006 @@ -623,7 +623,7 @@ -extern char *get_path(char *); +extern char *get_path(const char *); static void dvbin_close(stream_t *stream) { Modified: trunk/libmpdvdkit2/dvd_reader.c ============================================================================== --- trunk/libmpdvdkit2/dvd_reader.c (original) +++ trunk/libmpdvdkit2/dvd_reader.c Tue Jul 4 01:27:37 2006 @@ -213,7 +213,7 @@ #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; Modified: trunk/libvo/font_load_ft.c ============================================================================== --- trunk/libvo/font_load_ft.c (original) +++ trunk/libvo/font_load_ft.c Tue Jul 4 01:27:37 2006 @@ -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; Modified: trunk/libvo/vo_dxr2.c ============================================================================== --- trunk/libvo/vo_dxr2.c (original) +++ trunk/libvo/vo_dxr2.c Tue Jul 4 01:27:37 2006 @@ -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; Modified: trunk/loader/qtx/list.c ============================================================================== --- trunk/loader/qtx/list.c (original) +++ trunk/loader/qtx/list.c Tue Jul 4 01:27:37 2006 @@ -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); Modified: trunk/loader/qtx/qtxload.c ============================================================================== --- trunk/loader/qtx/qtxload.c (original) +++ trunk/loader/qtx/qtxload.c Tue Jul 4 01:27:37 2006 @@ -22,7 +22,7 @@ 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); Modified: trunk/loader/registry.c ============================================================================== --- trunk/loader/registry.c (original) +++ trunk/loader/registry.c Tue Jul 4 01:27:37 2006 @@ -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;
participants (1)
-
reynaldo