diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-27 20:46:39 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-27 20:46:39 +0000 |
commit | 67a78be4086e49d413bde6006184b83e879df571 (patch) | |
tree | 6cbab538326171936659e23bbf3803ea2a2c0d2e | |
parent | 26c34c0862cce6f8754f8c08150319f508bebc63 (diff) | |
download | mpv-67a78be4086e49d413bde6006184b83e879df571.tar.bz2 mpv-67a78be4086e49d413bde6006184b83e879df571.tar.xz |
Avoid bogus file not found message if vobsub isn'T forced (autodetect).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5870 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | vobsub.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -769,9 +769,10 @@ vobsub_parse_ifo(const char *const name, unsigned int *palette, unsigned int *wi { 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"; |