From 5feccfd289f4f266ed40350c01263ce75fc7453d Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 17 Mar 2006 19:39:30 +0000 Subject: [PATCH] 10l forgotten stream_reset to clear the EOF flag git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17885 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subreader.c b/subreader.c index fc7a9342b7..0deef7be93 100644 --- a/subreader.c +++ b/subreader.c @@ -1339,6 +1339,7 @@ void* guess_cp(stream_t *st, char *preferred_language, char *fallback) free(languages); free(buffer); + stream_reset(st); stream_seek(st,0); if (!detected_sub_cp) { @@ -1384,6 +1385,7 @@ sub_data* sub_read_file (char *filename, float fps) { srp=sr+sub_format; mp_msg(MSGT_SUBREADER,MSGL_INFO,"SUB: Detected subtitle file format: %s\n", srp->name); + stream_reset(fd); stream_seek(fd,0); #ifdef USE_ICONV