Mercurial > mplayer.hg
changeset 33790:ab6d06f5b98b
Add const to some string pointer arguments that will not be modified.
author | ib |
---|---|
date | Tue, 12 Jul 2011 08:45:52 +0000 |
parents | 475d96f700d4 |
children | 8b0c78a85a8c |
files | gui/interface.c gui/interface.h gui/win32/dialogs.c sub/subreader.c sub/subreader.h |
diffstat | 5 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Mon Jul 11 21:54:53 2011 +0000 +++ b/gui/interface.c Tue Jul 12 08:45:52 2011 +0000 @@ -1105,7 +1105,7 @@ #endif } -void mplayerLoadSubtitle(char *name) +void mplayerLoadSubtitle(const char *name) { if (guiInfo.Playing == 0) return;
--- a/gui/interface.h Mon Jul 11 21:54:53 2011 +0000 +++ b/gui/interface.h Tue Jul 12 08:45:52 2011 +0000 @@ -149,7 +149,7 @@ void mplayer(int what, float fparam, void *vparam); void mplayerLoadFont(void); -void mplayerLoadSubtitle(char *name); +void mplayerLoadSubtitle(const char *name); void gmp_msg(int mod, int lev, const char *format, ...); #endif /* MPLAYER_GUI_INTERFACE_H */
--- a/gui/win32/dialogs.c Mon Jul 11 21:54:53 2011 +0000 +++ b/gui/win32/dialogs.c Tue Jul 12 08:45:52 2011 +0000 @@ -45,7 +45,7 @@ guiInterface_t guiInfo; int addurl = 0; -void mplayerLoadSubtitle(char *name) +void mplayerLoadSubtitle(const char *name) { if (!guiInfo.Playing) return;
--- a/sub/subreader.c Mon Jul 11 21:54:53 2011 +0000 +++ b/sub/subreader.c Tue Jul 12 08:45:52 2011 +0000 @@ -1429,7 +1429,7 @@ #undef MAX_GUESS_BUFFER_SIZE #endif -sub_data* sub_read_file (char *filename, float fps) { +sub_data* sub_read_file (const char *filename, float fps) { int utf16; stream_t* fd; int n_max, n_first, i, j, sub_first, sub_orig;
--- a/sub/subreader.h Mon Jul 11 21:54:53 2011 +0000 +++ b/sub/subreader.h Tue Jul 12 08:45:52 2011 +0000 @@ -91,7 +91,7 @@ typedef void (*open_sub_func)(char *, float, int); typedef int (*open_vob_func)(const char *, const char * const, int, void *); -sub_data* sub_read_file (char *filename, float pts); +sub_data* sub_read_file (const char *filename, float pts); subtitle* subcp_recode (subtitle *sub); // enca_fd is the file enca uses to determine the codepage. // setting to NULL disables enca.