changeset 17884:0b51810cdf2b

10l forgotten stream_reset to clear the EOF flag
author henry
date Fri, 17 Mar 2006 19:39:30 +0000
parents 063c90340a34
children c04102e27eba
files subreader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Fri Mar 17 13:26:40 2006 +0000
+++ b/subreader.c	Fri Mar 17 19:39:30 2006 +0000
@@ -1339,6 +1339,7 @@
     
     free(languages);
     free(buffer);
+    stream_reset(st);
     stream_seek(st,0);
 
     if (!detected_sub_cp) {
@@ -1384,6 +1385,7 @@
     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