[vlc-commits] commit: NULL rather than 0 pointers ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Thu Oct 21 23:12:49 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 21 21:18:05 2010 +0300| [2af5e585706b6d1424719fcdca52c40c4e65aa15] | committer: Rémi Denis-Courmont
NULL rather than 0 pointers
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2af5e585706b6d1424719fcdca52c40c4e65aa15
---
modules/access/screen/screen.c | 2 +-
modules/demux/rawaud.c | 4 ++--
modules/demux/rawvid.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/access/screen/screen.c b/modules/access/screen/screen.c
index c49e876..2cb00a0 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -99,7 +99,7 @@ vlc_module_begin ()
add_integer( "screen-caching", DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true )
- add_float( "screen-fps", SCREEN_FPS, 0, FPS_TEXT, FPS_LONGTEXT, true )
+ add_float( "screen-fps", SCREEN_FPS, NULL, FPS_TEXT, FPS_LONGTEXT, true )
#ifdef SCREEN_SUBSCREEN
add_integer( "screen-top", 0, NULL, TOP_TEXT, TOP_LONGTEXT, true )
diff --git a/modules/demux/rawaud.c b/modules/demux/rawaud.c
index b5a270b..29bcda5 100644
--- a/modules/demux/rawaud.c
+++ b/modules/demux/rawaud.c
@@ -67,8 +67,8 @@ vlc_module_begin();
set_subcategory( SUBCAT_INPUT_DEMUX );
set_callbacks( Open, Close );
add_shortcut( "rawaud" );
- add_integer( "rawaud-channels", 2, 0, CHANNELS_TEXT, CHANNELS_LONGTEXT, false );
- add_integer( "rawaud-samplerate", 48000, 0, SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, false );
+ add_integer( "rawaud-channels", 2, NULL, CHANNELS_TEXT, CHANNELS_LONGTEXT, false );
+ add_integer( "rawaud-samplerate", 48000, NULL, SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, false );
add_string( "rawaud-fourcc", FOURCC_DEFAULT, NULL,
FOURCC_TEXT, FOURCC_LONGTEXT, false );
add_string( "rawaud-lang", "eng", NULL, LANG_TEXT, LANG_LONGTEXT, false);
diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c
index fbc1bf4..19567a5 100644
--- a/modules/demux/rawvid.c
+++ b/modules/demux/rawvid.c
@@ -69,8 +69,8 @@ vlc_module_begin ()
set_callbacks( Open, Close )
add_shortcut( "rawvideo" )
add_string( "rawvid-fps", NULL, NULL, FPS_TEXT, FPS_LONGTEXT, false )
- add_integer( "rawvid-width", 0, 0, WIDTH_TEXT, WIDTH_LONGTEXT, 0 )
- add_integer( "rawvid-height", 0, 0, HEIGHT_TEXT, HEIGHT_LONGTEXT, 0 )
+ add_integer( "rawvid-width", 0, NULL, WIDTH_TEXT, WIDTH_LONGTEXT, 0 )
+ add_integer( "rawvid-height", 0, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT, 0 )
add_string( "rawvid-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT,
true )
add_string( "rawvid-aspect-ratio", NULL, NULL,
More information about the vlc-commits
mailing list