Mercurial > mplayer.hg
changeset 5869:412ff784c971
Avoid bogus file not found message if vobsub isn'T forced (autodetect).
author | atmos4 |
---|---|
date | Sat, 27 Apr 2002 20:46:39 +0000 |
parents | ad8124c9d462 |
children | 125d667e9eac |
files | vobsub.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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";