From 272e872090c9c5e2f0c965f671279220bba00b71 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 4 Aug 2003 01:37:58 +0000 Subject: 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 --- src/libsputext/demux_sputext.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3