[MPlayer-cvslog] r29530 - trunk/libmpdemux/demux_mf.c
reimar
subversion at mplayerhq.hu
Mon Aug 17 08:14:12 CEST 2009
Author: reimar
Date: Mon Aug 17 08:14:12 2009
New Revision: 29530
Log:
Set demuxer->filepos in mf demuxer, since the stream_tell fallback is not
usable. Fixes progress display in mencoder.
Modified:
trunk/libmpdemux/demux_mf.c
Modified: trunk/libmpdemux/demux_mf.c
==============================================================================
--- trunk/libmpdemux/demux_mf.c Mon Aug 17 07:56:36 2009 (r29529)
+++ trunk/libmpdemux/demux_mf.c Mon Aug 17 08:14:12 2009 (r29530)
@@ -41,7 +41,7 @@ static void demux_seek_mf(demuxer_t *dem
else newpos+=rel_seek_secs * sh_video->fps;
if ( newpos < 0 ) newpos=0;
if( newpos >= mf->nr_of_files) newpos=mf->nr_of_files - 1;
- mf->curr_frame=newpos;
+ demuxer->filepos=mf->curr_frame=newpos;
}
// return value:
@@ -71,7 +71,7 @@ static int demux_mf_fill_buffer(demuxer_
}
fclose( f );
- mf->curr_frame++;
+ demuxer->filepos=mf->curr_frame++;
return 1;
}
@@ -126,7 +126,7 @@ static demuxer_t* demux_open_mf(demuxer_
mp_msg(MSGT_DEMUX, MSGL_INFO, "[demux_mf] file type was not set! trying 'type=%s'...\n", mf_type);
}
- mf->curr_frame=0;
+ demuxer->filepos=mf->curr_frame=0;
demuxer->movi_start = 0;
demuxer->movi_end = mf->nr_of_files - 1;
More information about the MPlayer-cvslog
mailing list