]> git.sesse.net Git - vlc/commitdiff
Include assert.h where assert() is used
authorRafaël Carré <funman@videolan.org>
Mon, 26 May 2008 16:41:19 +0000 (18:41 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 26 May 2008 16:46:07 +0000 (18:46 +0200)
24 files changed:
modules/access/dvdread.c
modules/access/http.c
modules/audio_output/pulse.c
modules/codec/cc.c
modules/codec/cmml/xtag.c
modules/control/dbus.c
modules/control/http/http.c
modules/control/http/mvar.c
modules/demux/smf.c
modules/demux/ty.c
modules/gui/ncurses.c
modules/gui/skins2/unzip/unzip.c
modules/meta_engine/musicbrainz.c
modules/misc/freetype.c
modules/misc/gnutls.c
modules/misc/playlist/m3u.c
modules/misc/playlist/xspf.c
modules/misc/xml/xtag.c
modules/packetizer/mpeg4audio.c
modules/stream_out/description.c
modules/stream_out/rtcp.c
modules/stream_out/rtp.c
modules/stream_out/transcode.c
src/config/cmdline.c

index 11e2a940b7439ad3fcac11edcdbb75a598a50330..dc7d93970b0ebf599a44f3ec8fcad227d479f508 100644 (file)
@@ -56,6 +56,8 @@
 #include <dvdread/nav_read.h>
 #include <dvdread/nav_print.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index 4a1e7845d0890317be34262d9c25f09d19ca7c3e..9b28a2360fc921231bb2b060f0753f722f0e57e2 100644 (file)
@@ -50,6 +50,8 @@
 #   include <zlib.h>
 #endif
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index 3f2dc941de2763f4c720a47c12b320238ffe94f7..8dc7a20be2ffdee87346e6bfc92c22fb938a3861 100644 (file)
@@ -34,6 +34,8 @@
 
 #include <pulse/pulseaudio.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * aout_sys_t: Pulseaudio output method descriptor
  *****************************************************************************
index 5669c29fd4be58ba1d343b6f39efa9b14f1bc1c7..337ccad7e31e03037170f9be3975d5465d93c247 100644 (file)
@@ -52,6 +52,8 @@
 #include <errno.h>
 #include <string.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor.
  *****************************************************************************/
index 812e280a264e5fe3a9a2b725fd80a512222d49a9..a7e3b97633f1fe41d9dcb14487c292bbe14a63c0 100644 (file)
@@ -36,6 +36,8 @@
 
 #include <xlist.h>
 
+#include <assert.h>
+
 #undef XTAG_DEBUG
 
 #undef FALSE
index 15b950a97b8eaeb32408e68bf8b179217f9c29c6..a69e126a0a082f7dae203041d05f23649139e6d3 100644 (file)
@@ -57,6 +57,8 @@
 
 #include <math.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Local prototypes.
  *****************************************************************************/
index 877c0e71979e9b5e1ff432857dda0290fbaf521a..9aab7046ffe3b67e791c9eb04c2b61077ac3a7ce 100644 (file)
@@ -29,6 +29,8 @@
 #include "http.h"
 #include <vlc_plugin.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index 143d38673cd71fc13293f234c05b1f73b69d2173..ae655816d8bb09210735cf77e1c6361e89325ad1 100644 (file)
@@ -29,6 +29,8 @@
 #include "http.h"
 #include <limits.h>
 
+#include <assert.h>
+
 /* Utility function for scandir */
 static int Filter( const char *foo )
 {
index 7ff632f4e57844991a83e4343bc8e9433f7e2710..dbf6884d46d96bf1ae45009c06cf615d12521fd8 100644 (file)
@@ -31,6 +31,8 @@
 #include <vlc_charset.h>
 #include <limits.h>
 
+#include <assert.h>
+
 #define TEMPO_MIN  20
 #define TEMPO_MAX 250 /* Beats per minute */
 
index c30b601d401eac7f3943fdf28a5c38330fe24c7b..af620291d740c660ea627f434b3acdcd997a330b 100644 (file)
@@ -47,6 +47,8 @@
 #include "vlc_input.h"
 #include "../codec/cc.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index 75696d8ffba2715df60d81aa6532223bfdd52b48..e2792965a7f19d8c80ab709b64a5a8e1aa590380 100644 (file)
@@ -57,6 +57,8 @@
 #include <vlc_playlist.h>
 #include <vlc_meta.h>
 
+#include <assert.h>
+
 #ifdef HAVE_SYS_STAT_H
 #   include <sys/stat.h>
 #endif
index cdb2efd531a5adcbf85d025017f14a4197436344..72f2dff331f2982f1f9459de48e73a6c871ab78b 100644 (file)
@@ -49,6 +49,7 @@ woven in by Terry Thorsen 1/2003.
 #   include <errno.h>
 #endif
 
+#include <assert.h>
 
 #ifndef local
 #  define local static
index 9f5d8ef371268219a50468d43fe09bd682d2fff8..257c2a6e0bd746b40f16f4bea3ee7d06b0848d3f 100644 (file)
@@ -38,6 +38,8 @@
 
 #include "musicbrainz/mb_c.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
index 218337ecacb2ab385d274d7f65af98862bda2018..f90ac48ab919137f16deb697b153f3fdff898093 100644 (file)
@@ -73,6 +73,8 @@
 #include <fontconfig/fontconfig.h>
 #endif
 
+#include <assert.h>
+
 typedef struct line_desc_t line_desc_t;
 
 /*****************************************************************************
index 629d470181a1c8afee09db4076aff6919e6af9bc..465a13e0d5d6153cd8cec7fce1de53e0d59002e1 100644 (file)
@@ -65,6 +65,8 @@
 
 #include "dhparams.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index 532cfd75da5fc0e8139de1a4fc6b46e02fa8b1c0..05b6b210c98dfcc7c2bf70e55746694cfe11347c 100644 (file)
@@ -37,6 +37,8 @@
 
 #include <errno.h>                                                 /* ENOMEM */
 
+#include <assert.h>
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
index e2a7886c6ab93667dfc7c4b0519c56252991fdb7..d854de27a471524d27c22d683f41d230b9249205 100644 (file)
@@ -40,6 +40,8 @@
 #include <vlc_charset.h>
 #include "xspf.h"
 
+#include <assert.h>
+
 /**
  * \brief Prints the XSPF header to file, writes each item by xspf_export_item()
  * and closes the open xml elements
index e1a06b9331e22e7e4c2577468e3e242e0a618939..ef33b2a05156c7098791e54cd14cd5c658eecda6 100644 (file)
@@ -40,6 +40,8 @@
 #include <ctype.h>
 #include <stdarg.h>
 
+#include <assert.h>
+
 #undef XTAG_DEBUG
 
 typedef struct _XList
index 304be30ad29a50f85eecc465d142acbb4f88e1eb..c9b16d7d36933e89a4e2583521f02aee07bdc9cb 100644 (file)
@@ -42,6 +42,8 @@
 
 #include "vlc_block_helper.h"
 
+#include <assert.h>
+
 /* AAC Config in ES:
  *
  * AudioObjectType          5 bits
index 288567dc134972d2ddae36fe929c29a9ceda5a9d..935734708a59ff8923968724cd9b9533010a19f9 100644 (file)
@@ -35,6 +35,8 @@
 #include <vlc_block.h>
 #include <vlc_sout.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Exported prototypes
  *****************************************************************************/
index 1bc580ad60ec17f34a6d5e7ea597028e49180357..8458f77f4c9e505cc2315fb3e3b291043befb3b3 100644 (file)
@@ -34,6 +34,8 @@
 #include <vlc_sout.h>
 #include "rtp.h"
 
+#include <assert.h>
+
 /*
  * NOTE on RTCP implementation:
  * - there is a single sender (us), no conferencing here! => n = sender = 1,
index d8dcc1c9a3e785ccd6d0f12f953d02a6c3072cbc..1cd6ee53b7e547004364398d473546dc19f19ce0 100644 (file)
@@ -61,6 +61,8 @@
 
 #include <errno.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index ccedc51d3c0c498a766cae0686ed15432fe7854f..60d721fcee376bc3cfadffd2e5bd1030f215d3b1 100644 (file)
@@ -45,6 +45,8 @@
 
 #define MASTER_SYNC_MAX_DRIFT 100000
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
index acb96b3749c045304acbacf57d6f5a184b5241b5..bf665df338dfd4a1ada7a2ee865c53f2e8a8cb37 100644 (file)
@@ -40,6 +40,8 @@
 #include "configuration.h"
 #include "modules/modules.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * config_LoadCmdLine: parse command line
  *****************************************************************************