1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

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

View File

@ -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