mirror of
https://github.com/mpv-player/mpv
synced 2025-03-07 06:37:46 +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:
parent
26c34c0862
commit
67a78be408
7
vobsub.c
7
vobsub.c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user