0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

prevent sig11 when $HOME is not set

patch by From: Martin Oberzalek <kingleo@gmx.at>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11768 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
attila 2004-01-10 11:23:42 +00:00
parent 6d5fee309b
commit 1a79e7878c

View File

@ -1632,7 +1632,8 @@ if(sh_video) {
add_subtitles (sub_name[i], sh_video->fps, 0);
}
if(sub_auto) { // auto load sub file ...
char **tmp = sub_filenames(get_path("sub/"), filename);
char *psub = get_path( "sub/" );
char **tmp = sub_filenames((psub ? psub : ""), filename);
char **tmp2 = tmp;
while (*tmp2)
add_subtitles (*tmp2++, sh_video->fps, 0);