diff options
author | laaz <laaz@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-26 20:48:22 +0000 |
---|---|---|
committer | laaz <laaz@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-26 20:48:22 +0000 |
commit | fe5782c1cecf49651b8a216fc88d90bd6ba311dc (patch) | |
tree | c1600dc7dcf8345c3f09af7d26a4ea2c241e2e31 /mplayer.c | |
parent | 90adf4b5308b2ea3ea2e3008309e2780d33d41a9 (diff) | |
download | mpv-fe5782c1cecf49651b8a216fc88d90bd6ba311dc.tar.bz2 mpv-fe5782c1cecf49651b8a216fc88d90bd6ba311dc.tar.xz |
Fixed segfault if 0 subtitle found in a file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2492 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -607,7 +607,8 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){ ||(0==strcmp(&sub_name[l-4],".UTF")))) sub_utf8=1; subtitles=sub_read_file(sub_name); - if(!subtitles) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadSub,sub_name); + if (sub_num == 0) printf ("No subtitles found in %s\n",sub_name); + if(!subtitles || sub_num == 0) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadSub,sub_name); } #endif |