[Mplayer-cvslog] CVS: main vobsub.c,1.9,1.10

Atmosfear atmos4 at mplayerhq.hu
Sat Apr 27 22:46:42 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv21817

Modified Files:
	vobsub.c 
Log Message:
Avoid bogus file not found message if vobsub isn'T forced (autodetect).


Index: vobsub.c
===================================================================
RCS file: /cvsroot/mplayer/main/vobsub.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- vobsub.c	26 Apr 2002 15:48:18 -0000	1.9
+++ vobsub.c	27 Apr 2002 20:46:39 -0000	1.10
@@ -769,9 +769,10 @@
 {
     int res = -1;
     FILE *fd = fopen(name, "rb");
-    if (fd == NULL)
-	perror("Can't open IFO file");
-    else {
+    if (fd == NULL) {
+        if (force)
+	    perror("Can't open IFO file");
+    } else {
 	// parse IFO header
 	unsigned char block[0x800];
 	const char *const ifo_magic = "DVDVIDEO-VTS";




More information about the MPlayer-cvslog mailing list