summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index c7fec2e565..f4866c817c 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -623,9 +623,9 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
if ( sub_auto )
{
// auto load sub file ...
- subtitles=sub_read_file( sub_filename( filename ) );
- if ( subtitles == NULL ) subtitles=sub_read_file(get_path("default.sub")); // try default:
- } else subtitles=sub_read_file(get_path("default.sub")); // try default:
+ subtitles=sub_read_file( sub_filename( get_path("sub/"), filename ) );
+ }
+ if ( subtitles == NULL ) subtitles=sub_read_file(get_path("default.sub")); // try default:
}