# HG changeset patch # User atmos4 # Date 1019940399 0 # Node ID 412ff784c97197cfd8eeacfc4732b0e535abe518 # Parent ad8124c9d46279019e9c80823c5fc37251507cea Avoid bogus file not found message if vobsub isn'T forced (autodetect). diff -r ad8124c9d462 -r 412ff784c971 vobsub.c --- a/vobsub.c Sat Apr 27 20:42:02 2002 +0000 +++ b/vobsub.c Sat Apr 27 20:46:39 2002 +0000 @@ -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";