summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-01-10 11:23:42 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-01-10 11:23:42 +0000
commit1a79e7878c907754fd4ca1214a6806f97c413aa2 (patch)
tree83e9e753b7b9c71d2630058efa4f904e6207e18d /mplayer.c
parent6d5fee309b4ee6711ab8f416626c2b5625c9d3fe (diff)
downloadmpv-1a79e7878c907754fd4ca1214a6806f97c413aa2.tar.bz2
mpv-1a79e7878c907754fd4ca1214a6806f97c413aa2.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 1cfb5cd8d5..117c71d689 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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);