summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2002-11-05 23:29:48 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2002-11-05 23:29:48 +0000
commita80e398415ee70ab44930beac307ae1273960e54 (patch)
tree6e5fc803553bf6dde7900ae120e3a108afb75a0d /src
parentdcd432bebacab240a6d5cd1da509ab1509ff7e5f (diff)
downloadxine-lib-a80e398415ee70ab44930beac307ae1273960e54.tar.gz
xine-lib-a80e398415ee70ab44930beac307ae1273960e54.tar.bz2
Resets stream_length when opening a new stream.
xine_get_pos_length should work a bit better with mp3. CVS patchset: 3195 CVS date: 2002/11/05 23:29:48
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/xine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index a84eb6104..77c552c33 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.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: xine.c,v 1.188 2002/11/02 11:34:12 mroi Exp $
+ * $Id: xine.c,v 1.189 2002/11/05 23:29:48 tmattern Exp $
*
* top-level xine functions
*
@@ -379,6 +379,7 @@ static int xine_open_internal (xine_stream_t *stream, const char *mrl) {
*/
xine_close_internal (stream);
+ stream->input_length = 0;
#ifdef LOG
printf ("xine: engine should be stopped now\n");
@@ -946,7 +947,7 @@ static int xine_get_current_position (xine_stream_t *stream) {
/* pos = stream->mCurInput->seek (0, SEEK_CUR); */
len = stream->input_length;
- if (len == 0) len = stream->input_plugin->get_length (stream->input_plugin);
+ if (len == 0) len = stream->input_plugin->get_length (stream->input_plugin);
share = (double) stream->input_pos / (double) len * 65535;
pthread_mutex_unlock (&stream->frontend_lock);