1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 12:55:16 +00:00

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
This commit is contained in:
atmos4 2002-04-27 20:46:39 +00:00
parent 26c34c0862
commit 67a78be408

View File

@ -769,9 +769,10 @@ vobsub_parse_ifo(const char *const name, unsigned int *palette, unsigned int *wi
{ {
int res = -1; int res = -1;
FILE *fd = fopen(name, "rb"); FILE *fd = fopen(name, "rb");
if (fd == NULL) if (fd == NULL) {
perror("Can't open IFO file"); if (force)
else { perror("Can't open IFO file");
} else {
// parse IFO header // parse IFO header
unsigned char block[0x800]; unsigned char block[0x800];
const char *const ifo_magic = "DVDVIDEO-VTS"; const char *const ifo_magic = "DVDVIDEO-VTS";