changeset 3733:8dcc18663e60

warning fix
author pl
date Tue, 25 Dec 2001 16:38:07 +0000
parents 837ed2f1ed5e
children e8ca83c5d013
files libmpdemux/demux_viv.c libmpdemux/rtp.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_viv.c	Tue Dec 25 16:35:57 2001 +0000
+++ b/libmpdemux/demux_viv.c	Tue Dec 25 16:38:07 2001 +0000
@@ -286,8 +286,8 @@
 return 1;
 }
 
-static audio_pos=0;
-static audio_rate=0;
+static int audio_pos=0;
+static int audio_rate=0;
 
 // return value:
 //     0 = EOF or no stream found
--- a/libmpdemux/rtp.c	Tue Dec 25 16:35:57 2001 +0000
+++ b/libmpdemux/rtp.c	Tue Dec 25 16:38:07 2001 +0000
@@ -119,10 +119,12 @@
   int i;
 
   lengthPacket=recv(fd,buf,1590,0);
+  // FIXME: error handling to write here
   headerSize = 3;
   *lengthData = lengthPacket - headerSize;
   *data = (char*) buf + headerSize;
   fprintf(stderr,"[%d] %02x %x\n",lengthPacket,buf[8],buf[0]);
+  return(0);
 }
 
 /* create a sender socket. */