mirror of https://github.com/mpv-player/mpv
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:
parent
fad4e622ec
commit
5feccfd289
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue