Mercurial > mplayer.hg
changeset 11767:e6db1c939c25
prevent sig11 when $HOME is not set
patch by From: Martin Oberzalek <kingleo@gmx.at>
author | attila |
---|---|
date | Sat, 10 Jan 2004 11:23:42 +0000 |
parents | a80ae8896d6a |
children | 4b6dcc5a1d38 |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Jan 10 10:00:18 2004 +0000 +++ b/mplayer.c Sat Jan 10 11:23:42 2004 +0000 @@ -1632,7 +1632,8 @@ 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);