[vlc-devel] commit: Missing <assert.h> ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Dec 29 22:12:45 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Dec 29 23:12:34 2008 +0200| [b02517be43c612f172c7e80f4e237730a68471c7] | committer: Rémi Denis-Courmont 

Missing <assert.h>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b02517be43c612f172c7e80f4e237730a68471c7
---

 modules/codec/lpcm.c        |    1 +
 modules/control/rc.c        |    3 ++-
 modules/mux/mpeg/pes.c      |   10 +---------
 modules/packetizer/mlp.c    |    1 +
 modules/stream_out/record.c |    1 +
 modules/video_filter/yuvp.c |    1 +
 6 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index 32bd3d2..52adfc9 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -36,6 +36,7 @@
 #include <vlc_plugin.h>
 #include <vlc_codec.h>
 #include <vlc_aout.h>
+#include <assert.h>
 
 /*****************************************************************************
  * Module descriptor
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 79814d5..965f719 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -35,6 +35,7 @@
 #include <errno.h>                                                 /* ENOMEM */
 #include <ctype.h>
 #include <signal.h>
+#include <assert.h>
 
 #include <vlc_interface.h>
 #include <vlc_aout.h>
@@ -1726,7 +1727,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
         psz_variable = "video-snapshot";
     }
     else
-        /* This case can't happend */
+        /* This case can't happen */
         assert( 0 );
 
     if( newval.psz_string && *newval.psz_string )
diff --git a/modules/mux/mpeg/pes.c b/modules/mux/mpeg/pes.c
index 9e14037..06afc9a 100644
--- a/modules/mux/mpeg/pes.c
+++ b/modules/mux/mpeg/pes.c
@@ -30,18 +30,10 @@
 # include "config.h"
 #endif
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <fcntl.h>
-
 #include <vlc_common.h>
 #include <vlc_sout.h>
 #include <vlc_block.h>
-
-#ifdef HAVE_UNISTD_H
-#   include <unistd.h>
-#endif
+#include <assert.h>
 
 #include <vlc_codecs.h>
 #include "pes.h"
diff --git a/modules/packetizer/mlp.c b/modules/packetizer/mlp.c
index 06eb1c1..cd4ce12 100644
--- a/modules/packetizer/mlp.c
+++ b/modules/packetizer/mlp.c
@@ -34,6 +34,7 @@
 #include <vlc_aout.h>
 #include <vlc_block_helper.h>
 #include <vlc_bits.h>
+#include <assert.h>
 
 /*****************************************************************************
  * Module descriptor
diff --git a/modules/stream_out/record.c b/modules/stream_out/record.c
index e64fcf3..1174f97 100644
--- a/modules/stream_out/record.c
+++ b/modules/stream_out/record.c
@@ -36,6 +36,7 @@
 #include <vlc_block.h>
 #include <vlc_sout.h>
 #include <vlc_charset.h>
+#include <assert.h>
 
 /*****************************************************************************
  * Exported prototypes
diff --git a/modules/video_filter/yuvp.c b/modules/video_filter/yuvp.c
index 5023b42..72c6fb8 100644
--- a/modules/video_filter/yuvp.c
+++ b/modules/video_filter/yuvp.c
@@ -32,6 +32,7 @@
 #include <vlc_plugin.h>
 #include <vlc_vout.h>
 #include "vlc_filter.h"
+#include <assert.h>
 
 /* TODO:
  *  Add anti-aliasing support (specially for DVD where only 4 colors are used)




More information about the vlc-devel mailing list