[MPlayer-cygwin] rmvb/rm in GUI mode

siweiliu siweiliu at 126.com
Sun Oct 29 13:03:03 CET 2006


Hi, in GUI mode, rmvb/rm file can't be seek by seekbar.
I think add these lines in function static void demux_seek_real(demuxer_t *demuxer, float rel_seek_secs, float audio_delay, int flags) to libmpdemux/demux_real.c will solve this problem:
if (flags & 2) {
  rel_seek_secs = rel_seek_secs*(((real_priv_t *)(demuxer->priv))->duration);
}
after the code:
    if (flags & 1)
 /* seek absolute */
 priv->current_apacket = priv->current_vpacket = 0;
 
how about it?
 


More information about the MPlayer-cygwin mailing list