mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00:00
do not try to load default.sub when it doesn't exist. Fixes bug #480.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18100 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f3ea1f9527
commit
480c621a2b
@ -3111,7 +3111,10 @@ if(sh_video) {
|
||||
free(tmp);
|
||||
if (set_of_sub_size == 0)
|
||||
{
|
||||
add_subtitles (mem_ptr=get_path("default.sub"), sh_video->fps, 1);
|
||||
struct stat st;
|
||||
mem_ptr = get_path("default.sub");
|
||||
if (stat(mem_ptr, &st) == 0)
|
||||
add_subtitles (mem_ptr, sh_video->fps, 0);
|
||||
free(mem_ptr); // release the buffer created by get_path()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user