[MPlayer-cvslog] r33878 - in trunk: gui/interface.c gui/interface.h gui/win32/dialogs.c sub/subreader.c sub/subreader.h
ib
subversion at mplayerhq.hu
Tue Jul 12 10:45:53 CEST 2011
Author: ib
Date: Tue Jul 12 10:45:52 2011
New Revision: 33878
Log:
Add const to some string pointer arguments that will not be modified.
Modified:
trunk/gui/interface.c
trunk/gui/interface.h
trunk/gui/win32/dialogs.c
trunk/sub/subreader.c
trunk/sub/subreader.h
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Mon Jul 11 23:54:53 2011 (r33877)
+++ trunk/gui/interface.c Tue Jul 12 10:45:52 2011 (r33878)
@@ -1105,7 +1105,7 @@ void mplayerLoadFont(void)
#endif
}
-void mplayerLoadSubtitle(char *name)
+void mplayerLoadSubtitle(const char *name)
{
if (guiInfo.Playing == 0)
return;
Modified: trunk/gui/interface.h
==============================================================================
--- trunk/gui/interface.h Mon Jul 11 23:54:53 2011 (r33877)
+++ trunk/gui/interface.h Tue Jul 12 10:45:52 2011 (r33878)
@@ -149,7 +149,7 @@ int guiPlaylistInitialize(play_tree_t *m
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 */
Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c Mon Jul 11 23:54:53 2011 (r33877)
+++ trunk/gui/win32/dialogs.c Tue Jul 12 10:45:52 2011 (r33878)
@@ -45,7 +45,7 @@ int get_video_colors(sh_video_t *sh_vide
guiInterface_t guiInfo;
int addurl = 0;
-void mplayerLoadSubtitle(char *name)
+void mplayerLoadSubtitle(const char *name)
{
if (!guiInfo.Playing) return;
Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c Mon Jul 11 23:54:53 2011 (r33877)
+++ trunk/sub/subreader.c Tue Jul 12 10:45:52 2011 (r33878)
@@ -1429,7 +1429,7 @@ const char* guess_cp(stream_t *st, const
#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;
Modified: trunk/sub/subreader.h
==============================================================================
--- trunk/sub/subreader.h Mon Jul 11 23:54:53 2011 (r33877)
+++ trunk/sub/subreader.h Tue Jul 12 10:45:52 2011 (r33878)
@@ -91,7 +91,7 @@ extern int fribidi_flip_commas;
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.
More information about the MPlayer-cvslog
mailing list