[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.40,1.41

Alex Beregszaszi alex at mplayerhq.hu
Mon Dec 8 12:12:04 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv22749

Modified Files:
	demux_ogg.c 
Log Message:
1000l

Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- demux_ogg.c	8 Dec 2003 09:51:10 -0000	1.40
+++ demux_ogg.c	8 Dec 2003 11:11:32 -0000	1.41
@@ -1213,6 +1213,7 @@
   ogg_demuxer_t* ogg_d = demuxer->priv;
   ogg_stream_t* os;
   float rate;
+
   if(demuxer->video->id >= 0) {
     os = &ogg_d->subs[demuxer->video->id];
     rate = os->samplerate;
@@ -1225,8 +1226,7 @@
     switch(cmd) {
 	case DEMUXER_CTRL_GET_TIME_LENGTH:
 	    if (ogg_d->final_granulepos<=0) return DEMUXER_CTRL_DONTKNOW;
-        unsigned long length = ogg_d->final_granulepos / rate;
-	    *((unsigned long *)arg)=length;
+	    *((unsigned long *)arg)=ogg_d->final_granulepos / rate;
 	    return DEMUXER_CTRL_GUESS;
 
 	case DEMUXER_CTRL_GET_PERCENT_POS:



More information about the MPlayer-cvslog mailing list