From fc50523f80ae3dafbea61b3af75c4f109e6fb6d8 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 5 Feb 2010 17:13:47 +0000 Subject: Add support for loading ASS subtitles through the stream layer and thus e.g. from some network location. Patch by Yuriy Kaminskiy [yumkam mail ru] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30515 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index e508e03be1..f76548def2 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1082,9 +1082,9 @@ void add_subtitles(char *filename, float fps, int noerr) #ifdef CONFIG_ASS if (ass_enabled) #ifdef CONFIG_ICONV - asst = ass_read_file(ass_library, filename, sub_cp); + asst = ass_read_stream(ass_library, filename, sub_cp); #else - asst = ass_read_file(ass_library, filename, 0); + asst = ass_read_stream(ass_library, filename, 0); #endif if (ass_enabled && subd && !asst) asst = ass_read_subdata(ass_library, subd, fps); -- cgit v1.2.3