From f9fc0813310f826356de219c3a8b83396dd21ff8 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Fri, 17 Jan 2003 02:53:51 +0000 Subject: fix seeking CVS patchset: 3940 CVS date: 2003/01/17 02:53:51 --- src/demuxers/demux_nsf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demuxers/demux_nsf.c b/src/demuxers/demux_nsf.c index 83fb843bb..c65060739 100644 --- a/src/demuxers/demux_nsf.c +++ b/src/demuxers/demux_nsf.c @@ -28,7 +28,7 @@ * For more information regarding the NSF format, visit: * http://www.tripoint.org/kevtris/nes/nsfspec.txt * - * $Id: demux_nsf.c,v 1.6 2003/01/10 21:11:05 miguelfreitas Exp $ + * $Id: demux_nsf.c,v 1.7 2003/01/17 02:53:51 tmmm Exp $ */ #ifdef HAVE_CONFIG_H @@ -269,7 +269,7 @@ static int demux_nsf_seek (demux_plugin_t *this_gen, this->current_pts = 0; this->new_song = 1; } else { - this->current_song = start_pos * this->total_songs / this->filesize + 1; + this->current_song = start_pos + 1; this->new_song = 1; this->current_pts = 0; xine_demux_flush_engine(this->stream); -- cgit v1.2.3