[MPlayer-cvslog] CVS: main mplayer.c,1.864,1.865

Oded Shimon CVS syncmail at mplayerhq.hu
Fri Sep 2 10:32:34 CEST 2005


CVS change done by Oded Shimon CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv31339

Modified Files:
	mplayer.c 
Log Message:
Make -identify's 'ID_LENGTH=' print a float and not an integer.. The 
accuracey may be totally fake for some demuxers (mpg), but accurate for 
others.. (avi)


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.864
retrieving revision 1.865
diff -u -r1.864 -r1.865
--- mplayer.c	2 Sep 2005 08:29:30 -0000	1.864
+++ mplayer.c	2 Sep 2005 08:32:30 -0000	1.865
@@ -2032,7 +2032,7 @@
     mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_AUDIO_RATE=%d\n", sh_audio->samplerate);
     mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_AUDIO_NCH=%d\n", sh_audio->channels);
   }
-  mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_LENGTH=%ld\n", demuxer_get_time_length(demuxer));
+  mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(demuxer));
 }
 
 if(!sh_video) goto main; // audio-only
@@ -3615,7 +3615,7 @@
 	break;
 	
     case MP_CMD_GET_TIME_LENGTH : {
-	mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_LENGTH=%ld\n", demuxer_get_time_length(demuxer));
+	mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_LENGTH=%.2lf\n", demuxer_get_time_length(demuxer));
     } break;
 
 	case MP_CMD_GET_VO_FULLSCREEN : {




More information about the MPlayer-cvslog mailing list