changes according to -utf8 option, draw_osd() function added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1502 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
1 parent
eefce080f0
commit
ca99c8dc89
23 files changed
+257
-139
No files matched your search
+5
-1
@@ -437,6 +437,7 @@ char * strreplace( char * in,char * what,char * whereof )
|
||||
|
||||
char * sub_filename(char* path, char * fname )
|
||||
{
|
||||
extern int sub_utf8;
|
||||
char * sub_name1;
|
||||
char * sub_name2;
|
||||
char * aviptr1, * aviptr2, * tmp;
|
||||
@@ -444,7 +445,9 @@ char * sub_filename(char* path, char * fname )
|
||||
FILE * f;
|
||||
int pos=0;
|
||||
char * sub_exts[] =
|
||||
{ ".sub",
|
||||
{ ".utf",
|
||||
".UTF",
|
||||
".sub",
|
||||
".SUB",
|
||||
".srt",
|
||||
".SRT",
|
||||
@@ -484,6 +487,7 @@ char * sub_filename(char* path, char * fname )
|
||||
if((f=fopen( sub_name,"rt" ))) {
|
||||
fclose( f );
|
||||
printf( "SUB: Detected sub file: %s\n",sub_name );
|
||||
if (i<2) sub_utf8=1;
|
||||
return sub_name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user