[MPlayer-dev-eng] [PATCH] small fix on real_demuxer
Gianluigi Tiesi
mplayer at netfarm.it
Thu Oct 19 02:47:29 CEST 2006
A gui sent me a patch for real demuxer since he says that
the player used with MPU (a gui I suppose it uses slave mode)
cannot seek in rm/rmvb.
The patch doesn't seams great for me since it makes an access
to demuxer internal data. I'm attaching it if someone would check it and maybe
write in a different way.
Regards
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
diff -NuBr -x.svn -xhelp_mp.h -xlibdha -x'*.so' -x'*.log' -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/libmpdemux/demux_real.c sherpya/libmpdemux/demux_real.c
--- main/libmpdemux/demux_real.c 2006-10-16 04:19:43.428592000 +0200
+++ sherpya/libmpdemux/demux_real.c 2006-10-19 02:43:13.309745600 +0200
@@ -1842,6 +1842,9 @@
/* seek absolute */
priv->current_apacket = priv->current_vpacket = 0;
+ if (flags & 2)
+ rel_seek_secs = rel_seek_secs * (((real_priv_t *)(demuxer->priv))->duration);
+
if ((streams & 1) && priv->current_vpacket >= priv->index_table_size[vid])
priv->current_vpacket = priv->index_table_size[vid] - 1;
if ((streams & 2) && priv->current_apacket >= priv->index_table_size[aid])
More information about the MPlayer-dev-eng
mailing list