[MPlayer-cvslog] CVS: main/libmpdemux demux_demuxers.c,1.6,1.7
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sun Oct 30 10:13:34 CET 2005
- Previous message: [MPlayer-cvslog] CVS: main mencoder.c,1.317,1.318
- Next message: [MPlayer-cvslog] CVS: main/libmpdemux demux_aac.c, 1.5, 1.6 demux_asf.c, 1.34, 1.35 demux_audio.c, 1.40, 1.41 demux_avi.c, 1.67, 1.68 demux_mkv.c, 1.50, 1.51 demux_mpc.c, 1.11, 1.12 demux_mpg.c, 1.65, 1.66 demux_ogg.c, 1.80, 1.81 demux_rawaudio.c, 1.13, 1.14 demux_real.c, 1.73, 1.74 demux_ts.c, 1.36, 1.37 demux_ty.c, 1.9, 1.10 demux_vqf.c, 1.4, 1.5 demux_xmms.c, 1.12, 1.13 demuxer.c, 1.207, 1.208
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv26961
Modified Files:
demux_demuxers.c
Log Message:
Provide DEMUXER_CTRL_GET_TIME_LENGTH and DEMUXER_CTRL_GET_PERCENT_POS.
Might need some more fine-tuning.
together with rev. 1.318 of mencoder.c fixes bug #116
Index: demux_demuxers.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_demuxers.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- demux_demuxers.c 23 Aug 2005 08:03:26 -0000 1.6
+++ demux_demuxers.c 30 Oct 2005 09:13:32 -0000 1.7
@@ -107,6 +107,19 @@
}
+static int demux_demuxers_control(demuxer_t *demuxer,int cmd, void *arg){
+ dd_priv_t* priv = demuxer->priv;
+ switch (cmd) {
+ case DEMUXER_CTRL_GET_TIME_LENGTH:
+ *((double *)arg) = demuxer_get_time_length(priv->vd);
+ return DEMUXER_CTRL_OK;
+ case DEMUXER_CTRL_GET_PERCENT_POS:
+ *((int *)arg) = demuxer_get_percent_pos(priv->vd);
+ return DEMUXER_CTRL_OK;
+ }
+ return DEMUXER_CTRL_NOTIMPL;
+}
+
demuxer_desc_t demuxer_desc_demuxers = {
"Demuxers demuxer",
"", // Not selectable
@@ -120,5 +133,5 @@
NULL,
demux_close_demuxers,
demux_demuxers_seek,
- NULL
+ demux_demuxers_control
};
- Previous message: [MPlayer-cvslog] CVS: main mencoder.c,1.317,1.318
- Next message: [MPlayer-cvslog] CVS: main/libmpdemux demux_aac.c, 1.5, 1.6 demux_asf.c, 1.34, 1.35 demux_audio.c, 1.40, 1.41 demux_avi.c, 1.67, 1.68 demux_mkv.c, 1.50, 1.51 demux_mpc.c, 1.11, 1.12 demux_mpg.c, 1.65, 1.66 demux_ogg.c, 1.80, 1.81 demux_rawaudio.c, 1.13, 1.14 demux_real.c, 1.73, 1.74 demux_ts.c, 1.36, 1.37 demux_ty.c, 1.9, 1.10 demux_vqf.c, 1.4, 1.5 demux_xmms.c, 1.12, 1.13 demuxer.c, 1.207, 1.208
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list