summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-04 01:37:58 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-04 01:37:58 +0000
commit272e872090c9c5e2f0c965f671279220bba00b71 (patch)
tree0f4675f712a85950153ba895778fcfc397f8c42d /src
parent8684c18e4d0369d4399d47ee2ad1234b08c2a1ad (diff)
downloadxine-lib-272e872090c9c5e2f0c965f671279220bba00b71.tar.gz
xine-lib-272e872090c9c5e2f0c965f671279220bba00b71.tar.bz2
seek to start before detecting content
not sure this is need, but it must be harmless :) patch by Marc Bevand CVS patchset: 5235 CVS date: 2003/08/04 01:37:58
Diffstat (limited to 'src')
-rw-r--r--src/libsputext/demux_sputext.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c
index d2e3e1a5b..a223df0c2 100644
--- a/src/libsputext/demux_sputext.c
+++ b/src/libsputext/demux_sputext.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_sputext.c,v 1.19 2003/07/25 21:02:05 miguelfreitas Exp $
+ * $Id: demux_sputext.c,v 1.20 2003/08/04 01:37:58 miguelfreitas Exp $
*
* code based on old libsputext/xine_decoder.c
*
@@ -709,6 +709,10 @@ static subtitle_t *sub_read_file (demux_sputext_t *this) {
};
+ /* Rewind (sub_autodetect() needs to read input from the beginning) */
+ this->input->seek(this->input, 0, SEEK_SET);
+ this->buflen = 0;
+
this->format=sub_autodetect (this);
if (this->format==-1) {
printf ("demux_sputext: Could not determine file format\n");