[Mplayer-cvslog] CVS: main/libmpdemux asfheader.c,1.38,1.39
Diego Biurrun CVS
syncmail at mplayerhq.hu
Sat Apr 17 12:31:40 CEST 2004
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv31290/libmpdemux
Modified Files:
asfheader.c
Log Message:
less verbosity + printf --> mp_msg
Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asfheader.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- asfheader.c 17 May 2003 12:24:01 -0000 1.38
+++ asfheader.c 17 Apr 2004 10:31:38 -0000 1.39
@@ -288,11 +288,11 @@
uint16_t stream_id, i;
uint32_t max_bitrate;
char *object=NULL, *ptr=NULL;
- printf("============ ASF Stream group == START ===\n");
- printf(" object size = %d\n", (int)objh.size);
+ mp_msg(MSGT_HEADER,MSGL_V,"============ ASF Stream group == START ===\n");
+ mp_msg(MSGT_HEADER,MSGL_V," object size = %d\n", (int)objh.size);
object = (char*)malloc(objh.size);
if( object==NULL ) {
- printf("Memory allocation failed\n");
+ mp_msg(MSGT_HEADER,MSGL_V,"Memory allocation failed\n");
return 0;
}
stream_read( demuxer->stream, object, objh.size );
@@ -302,19 +302,19 @@
ptr += sizeof(uint16_t);
if(stream_count > 0)
streams = (uint32_t*)malloc(2*stream_count*sizeof(uint32_t));
- printf(" stream count=[0x%x][%u]\n", stream_count, stream_count );
+ mp_msg(MSGT_HEADER,MSGL_V," stream count=[0x%x][%u]\n", stream_count, stream_count );
for( i=0 ; i<stream_count && ptr<((char*)object+objh.size) ; i++ ) {
stream_id = le2me_16(*(uint16_t*)ptr);
ptr += sizeof(uint16_t);
memcpy(&max_bitrate, ptr, sizeof(uint32_t));// workaround unaligment bug on sparc
max_bitrate = le2me_32(max_bitrate);
ptr += sizeof(uint32_t);
- printf(" stream id=[0x%x][%u]\n", stream_id, stream_id );
- printf(" max bitrate=[0x%x][%u]\n", max_bitrate, max_bitrate );
+ mp_msg(MSGT_HEADER,MSGL_V," stream id=[0x%x][%u]\n", stream_id, stream_id );
+ mp_msg(MSGT_HEADER,MSGL_V," max bitrate=[0x%x][%u]\n", max_bitrate, max_bitrate );
streams[2*i] = stream_id;
streams[2*i+1] = max_bitrate;
}
- printf("============ ASF Stream group == END ===\n");
+ mp_msg(MSGT_HEADER,MSGL_V,"============ ASF Stream group == END ===\n");
free( object );
break;
}
More information about the MPlayer-cvslog
mailing list