diff mplayer.c @ 4787:1ee5574d67d6

Fix automatic vobsub detection and make it silent.
author atmos4
date Thu, 21 Feb 2002 15:44:51 +0000
parents 59f8fd64538b
children d678ce495a75
line wrap: on
line diff
--- a/mplayer.c	Thu Feb 21 14:34:52 2002 +0000
+++ b/mplayer.c	Thu Feb 21 15:44:51 2002 +0000
@@ -766,7 +766,7 @@
 
     current_module="vobsub";
     if (vobsub_name){
-      vo_vobsub=vobsub_open(vobsub_name);
+      vo_vobsub=vobsub_open(vobsub_name,1);
       if(vo_vobsub==NULL)
         mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadSub,vobsub_name);
     }else if(sub_auto && filename && (strlen(filename)>=5)){
@@ -774,7 +774,7 @@
       char *buf = malloc((strlen(filename)-3) * sizeof(char));
       memset(buf,0,strlen(filename)-3); // make sure string is terminated
       strncpy(buf, filename, strlen(filename)-4); 
-      vo_vobsub=vobsub_open(buf);
+      vo_vobsub=vobsub_open(buf,0);
       free(buf);
     }
     if(vo_vobsub)