changeset 18804:2cc4eeaa0627

fprintf -> ms_msg
author nicodvb
date Sat, 24 Jun 2006 09:30:23 +0000
parents c56ae984dbc1
children 1f8d9010ce2f
files libmpdemux/rtp.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/rtp.c	Sat Jun 24 09:27:07 2006 +0000
+++ b/libmpdemux/rtp.c	Sat Jun 24 09:30:23 2006 +0000
@@ -353,11 +353,11 @@
   if (lengthPacket==0)
     exit(1);
   if (lengthPacket<0) {
-    fprintf(stderr,"socket read error\n");
+    mp_msg(MSGT_NETWORK,MSGL_ERR,"rtp: socket read error\n");
     exit(2);
   }
   if (lengthPacket<12) {
-    fprintf(stderr,"packet too small (%d) to be an rtp frame (>12bytes)\n", lengthPacket);
+    mp_msg(MSGT_NETWORK,MSGL_ERR,"rtp: packet too small (%d) to be an rtp frame (>12bytes)\n", lengthPacket);
     exit(3);
   }
   rh->b.v  = (unsigned int) ((buf[0]>>6)&0x03);
@@ -378,7 +378,7 @@
   *lengthData = lengthPacket - headerSize;
   *data = (char*) buf + headerSize;
 
-  //  fprintf(stderr,"Reading rtp: v=%x p=%x x=%x cc=%x m=%x pt=%x seq=%x ts=%x lgth=%d\n",rh->b.v,rh->b.p,rh->b.x,rh->b.cc,rh->b.m,rh->b.pt,rh->b.sequence,rh->timestamp,lengthPacket);
+  //  mp_msg(MSGT_NETWORK,MSGL_DBG2,"Reading rtp: v=%x p=%x x=%x cc=%x m=%x pt=%x seq=%x ts=%x lgth=%d\n",rh->b.v,rh->b.p,rh->b.x,rh->b.cc,rh->b.m,rh->b.pt,rh->b.sequence,rh->timestamp,lengthPacket);
 
   return(0);
 }