[MPlayer-cvslog] r30740 - in trunk/libass: ass_mp.c ass_mp.h

reimar subversion at mplayerhq.hu
Thu Feb 25 23:51:24 CET 2010


Author: reimar
Date: Thu Feb 25 23:51:23 2010
New Revision: 30740

Log:
Add const to ass_read_stream fname argument, the string is not modified.

Modified:
   trunk/libass/ass_mp.c
   trunk/libass/ass_mp.h

Modified: trunk/libass/ass_mp.c
==============================================================================
--- trunk/libass/ass_mp.c	Thu Feb 25 23:47:04 2010	(r30739)
+++ trunk/libass/ass_mp.c	Thu Feb 25 23:51:23 2010	(r30740)
@@ -218,7 +218,7 @@ ass_track_t* ass_read_subdata(ass_librar
 	return track;
 }
 
-ass_track_t* ass_read_stream(ass_library_t* library, char *fname, char *charset) {
+ass_track_t* ass_read_stream(ass_library_t* library, const char *fname, char *charset) {
 	int i;
 	char *buf = NULL;
 	ass_track_t *track;

Modified: trunk/libass/ass_mp.h
==============================================================================
--- trunk/libass/ass_mp.h	Thu Feb 25 23:47:04 2010	(r30739)
+++ trunk/libass/ass_mp.h	Thu Feb 25 23:51:23 2010	(r30740)
@@ -59,7 +59,7 @@ extern int ass_hinting;
 ass_track_t* ass_default_track(ass_library_t* library);
 int ass_process_subtitle(ass_track_t* track, subtitle* sub);
 ass_track_t* ass_read_subdata(ass_library_t* library, sub_data* subdata, double fps);
-ass_track_t* ass_read_stream(ass_library_t* library, char *fname, char *charset);
+ass_track_t* ass_read_stream(ass_library_t* library, const char *fname, char *charset);
 
 void ass_configure(ass_renderer_t* priv, int w, int h, int hinting);
 void ass_configure_fonts(ass_renderer_t* priv);


More information about the MPlayer-cvslog mailing list