[Sumover-dev] [svn commit] r4330 - vic/branches/mpeg4/rtp

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Nov 20 22:27:02 GMT 2008


Author: soohyunc
Date: Thu Nov 20 22:26:58 2008
New Revision: 4330

Modified:
   vic/branches/mpeg4/rtp/source.h

Log:
o  fixed a warning message when compiling with gcc-4.3.2. 
   warning: type qualifiers ignored on function return type

->  the return variables are declared in a plain integer, so it is not necessary
    to put 'const' keyword as the type qualifiers in these functions.

This warning message will not come out with an old GCC (e.g., gcc 3.4.6 on
FreeBSD 6.4-RELEASE will not generate this warning message.)

o  rtp/source.cpp:749
   playout() is better return unsigned int because its returning variable is
   declared as 'u_int'. also by considering rtp/source.cpp:736, it is better
   that the return type of playout() is 'u_int'.



Modified: vic/branches/mpeg4/rtp/source.h
==============================================================================
--- vic/branches/mpeg4/rtp/source.h	(original)
+++ vic/branches/mpeg4/rtp/source.h	Thu Nov 20 22:26:58 2008
@@ -103,8 +103,8 @@
         ~PacketData();
         inline const struct rtphdr *rtp_hdr() const { return (rh_); }
         inline const u_char *video_data() const { return (vh_); }
-        inline const int data_length() const { return (len_); }
-        inline const int playout() const { return (playout_); }
+        inline int data_length() const { return (len_); }
+        inline u_int playout() const { return (playout_); }
  private:
         u_char          *pkt_;
         struct rtphdr   *rh_;



More information about the Sumover-dev mailing list