summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-27 20:59:58 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-27 20:59:58 +0000
commit7895a99e80db01f665bd8581833153872f9dcc99 (patch)
tree658a040c85de94e14c25b2a658c0928d095258ce /mplayer.c
parentb874045618e6ab4f0c8ad5fcbdd7eb1502141517 (diff)
downloadmpv-7895a99e80db01f665bd8581833153872f9dcc99.tar.bz2
mpv-7895a99e80db01f665bd8581833153872f9dcc99.tar.xz
implemented ~/.mplayer/sub/filename.sub stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@893 b3059339-0415-0410-9bf9-f77b7e298cf2
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:
}