10l forgotten stream_reset to clear the EOF flag

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17885 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2006-03-17 19:39:30 +00:00
parent fad4e622ec
commit 5feccfd289
1 changed files with 2 additions and 0 deletions

View File

@ -1339,6 +1339,7 @@ void* guess_cp(stream_t *st, char *preferred_language, char *fallback)
free(languages); free(languages);
free(buffer); free(buffer);
stream_reset(st);
stream_seek(st,0); stream_seek(st,0);
if (!detected_sub_cp) { if (!detected_sub_cp) {
@ -1384,6 +1385,7 @@ sub_data* sub_read_file (char *filename, float fps) {
srp=sr+sub_format; srp=sr+sub_format;
mp_msg(MSGT_SUBREADER,MSGL_INFO,"SUB: Detected subtitle file format: %s\n", srp->name); mp_msg(MSGT_SUBREADER,MSGL_INFO,"SUB: Detected subtitle file format: %s\n", srp->name);
stream_reset(fd);
stream_seek(fd,0); stream_seek(fd,0);
#ifdef USE_ICONV #ifdef USE_ICONV