]> git.sesse.net Git - vlc/commitdiff
var_InheritInteger -> var_InheritBool
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 6 Jun 2010 21:25:10 +0000 (00:25 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 6 Jun 2010 21:25:10 +0000 (00:25 +0300)
19 files changed:
modules/access/v4l2.c
modules/access/vcdx/access.c
modules/access_output/http.c
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/mono.c
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/resampler/bandlimited.c
modules/audio_output/jack.c
modules/audio_output/oss.c
modules/control/motion.c
modules/control/ntservice.c
modules/demux/avi/avi.c
modules/demux/mkv/Ebml_parser.cpp
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/mkv.cpp
modules/gui/fbosd.c
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/main_interface.cpp
modules/misc/notify/xosd.c

index 41baaf808db221085a581bfb878c003a44cc6346..3d56275fc20bc6dfdebd45a42ee087bc5f27af47 100644 (file)
@@ -679,7 +679,7 @@ static int DemuxOpen( vlc_object_t *p_this )
     ParseMRL( p_sys, p_demux->psz_path, (vlc_object_t *) p_demux );
 
 #ifdef HAVE_LIBV4L2
-    if( !var_InheritInteger( p_this, CFG_PREFIX "use-libv4l2" ) )
+    if( !var_InheritBool( p_this, CFG_PREFIX "use-libv4l2" ) )
     {
         msg_Dbg( p_this, "Trying direct kernel v4l2" );
         use_kernel_v4l2( p_sys );
@@ -1134,7 +1134,7 @@ static int AccessOpen( vlc_object_t * p_this )
     ParseMRL( p_sys, p_access->psz_location, (vlc_object_t *) p_access );
 
 #ifdef HAVE_LIBV4L2
-    if( !var_InheritInteger( p_this, CFG_PREFIX "use-libv4l2" ) )
+    if( !var_InheritBool( p_this, CFG_PREFIX "use-libv4l2" ) )
     {
         msg_Dbg( p_this, "Trying direct kernel v4l2" );
         use_kernel_v4l2( p_sys );
index 5d0aeff6f1288ed4ac802cd3a5c2c368edcbb0ec..0982ad4a915d5050dfd465608211578ee684031c 100644 (file)
@@ -546,7 +546,7 @@ VCDParse( access_t * p_access, /*out*/ vcdinfo_itemid_t * p_itemid,
     char        *psz_source;
     char        *psz_next;
 
-    if( var_InheritInteger( p_access, MODULE_STRING "-PBC" ) ) {
+    if( var_InheritBool( p_access, MODULE_STRING "-PBC" ) ) {
       p_itemid->type = VCDINFO_ITEM_TYPE_LID;
       p_itemid->num = 1;
       *play_single_item = false;
index 79c57f4e61c70afe47b14575810de9682dd09ee8..f65c7146768264fe6a8e00bc77ceab1ec2596872 100644 (file)
@@ -279,7 +279,7 @@ static int Open( vlc_object_t *p_this )
     }
 
 #if 0 //def HAVE_AVAHI_CLIENT
-    if( var_InheritInteger(p_this, SOUT_CFG_PREFIX "bonjour") )
+    if( var_InheritBool(p_this, SOUT_CFG_PREFIX "bonjour") )
     {
         char                *psz_txt, *psz_name;
         playlist_t          *p_playlist = pl_Get( p_access );
index 07c8da06ec374447ec7f1bf72ec3074253ab489a..fa6ed618db7b71ab4f00c1f793810ceb94007b13 100644 (file)
@@ -197,7 +197,7 @@ static int Init( vlc_object_t *p_this, struct filter_sys_t * p_data
     int i_source_channel_offset;
     unsigned int i;
 
-    if( var_InheritInteger( p_this, "headphone-compensate" ) )
+    if( var_InheritBool( p_this, "headphone-compensate" ) )
     {
         /* minimal distance to any speaker */
         if( i_physical_channels & AOUT_CHAN_REARCENTER )
@@ -473,7 +473,7 @@ static int OpenFilter( vlc_object_t *p_this )
     }
     if( p_filter->fmt_in.audio.i_physical_channels == (AOUT_CHAN_LEFT|AOUT_CHAN_RIGHT)
           && ( p_filter->fmt_in.audio.i_original_channels & AOUT_CHAN_DOLBYSTEREO )
-          && !var_InheritInteger( p_filter, "headphone-dolby" ) )
+          && !var_InheritBool( p_filter, "headphone-dolby" ) )
     {
         b_fit = false;
         p_filter->fmt_in.audio.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT |
index 0cfd26c3c05754b70c2c5dc562c0e836e26d55c2..19b3969d4b27a4c50bd0685a97611edf3d76904c 100644 (file)
@@ -213,7 +213,7 @@ static int Init( vlc_object_t *p_this, struct filter_sys_t * p_data,
     int i_source_channel_offset;
     unsigned int i;
 
-    if( var_InheritInteger( p_this, "headphone-compensate" ) )
+    if( var_InheritBool( p_this, "headphone-compensate" ) )
     {
         /* minimal distance to any speaker */
         if( i_physical_channels & AOUT_CHAN_REARCENTER )
index 5545ca2e2bacc5cf796cab14cb291f027051f27c..d108cb11022a1e0dffa0d7cb5f106cdb52a3dc06 100644 (file)
@@ -107,14 +107,14 @@ vlc_module_end ()
 static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
                  audio_format_t input, audio_format_t output )
 {
-    p_sys->b_dynrng = var_InheritInteger( p_this, "a52-dynrng" );
+    p_sys->b_dynrng = var_InheritBool( p_this, "a52-dynrng" );
     p_sys->b_dontwarn = 0;
 
     /* No upmixing: it's not necessary and some other filters may want to do
      * it themselves. */
     if ( aout_FormatNbChannels( &output ) > aout_FormatNbChannels( &input ) )
     {
-        if ( ! var_InheritInteger( p_this, "a52-upmix" ) )
+        if ( ! var_InheritBool( p_this, "a52-upmix" ) )
         {
             return VLC_EGENERIC;
         }
index 91a2085d2c560efa59cc544e5e111ebf56686415..a71aa8ff459b27ed0d35482734990797bf384fdc 100644 (file)
@@ -296,7 +296,7 @@ static int OpenFilter( vlc_object_t *p_this )
     }
 
 #if !defined( SYS_DARWIN )
-    if( !var_InheritInteger( p_this, "hq-resampling" ) )
+    if( !var_InheritBool( p_this, "hq-resampling" ) )
     {
         return VLC_EGENERIC;
     }
index 8e57baff3c29b4826aee27b0753bd27d498309d8..538e7d950698e781b74ff0da99d22eccaaec6452 100644 (file)
@@ -186,7 +186,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     /* Auto connect ports if we were asked to */
-    if( var_InheritInteger( p_aout, AUTO_CONNECT_OPTION ) )
+    if( var_InheritBool( p_aout, AUTO_CONNECT_OPTION ) )
     {
         unsigned int i_in_ports;
         char *psz_regex = var_InheritString( p_aout, CONNECT_REGEX_OPTION );
index d3e4a74e12ad34531376f1a1669eb83039d6987f..14d91ca1c0efa9a3d196006d4bea70f2742708fe 100644 (file)
@@ -509,7 +509,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     p_aout->output.p_sys->b_workaround_buggy_driver =
-        var_InheritInteger( p_aout, "oss-buggy" );
+        var_InheritBool( p_aout, "oss-buggy" );
 
     /* Create OSS thread and wait for its readiness. */
     if( vlc_thread_create( p_aout, "aout", OSSThread,
index 0935d28f3d0d2343db496a9b15d9a66137b0db7a..2af60ef91fad316e507d477ddfe094c56a47211f 100644 (file)
@@ -157,7 +157,7 @@ int Open ( vlc_object_t *p_this )
     p_intf->pf_run = RunIntf;
 
     p_intf->p_sys->b_use_rotate =
-        var_InheritInteger( p_intf, "motion-use-rotate" );
+        var_InheritBool( p_intf, "motion-use-rotate" );
 
     return VLC_SUCCESS;
 }
index d1f1058f832c0c8dd2916850a7fb71e082ec5973..c36adefcfc41aee18fa14cc1687408b74fabc7c4 100644 (file)
@@ -138,13 +138,13 @@ static void Run( intf_thread_t *p_intf )
     p_intf->p_sys->psz_service = p_intf->p_sys->psz_service ?
         p_intf->p_sys->psz_service : strdup(VLCSERVICENAME);
 
-    if( var_InheritInteger( p_intf, "ntservice-install" ) )
+    if( var_InheritBool( p_intf, "ntservice-install" ) )
     {
         NTServiceInstall( p_intf );
         return;
     }
 
-    if( var_InheritInteger( p_intf, "ntservice-uninstall" ) )
+    if( var_InheritBool( p_intf, "ntservice-uninstall" ) )
     {
         NTServiceUninstall( p_intf );
         return;
index b522217a599b1d6d7eb933cb46ab199f6af34f11..ebb8f565c42f16634b94743ce580ddbdcd6f00a9 100644 (file)
@@ -283,7 +283,7 @@ static int Open( vlc_object_t * p_this )
 
     /* For unseekable stream, automaticaly use Demux_UnSeekable */
     if( !p_sys->b_seekable
-     || var_InheritInteger( p_demux, "avi-interleaved" ) )
+     || var_InheritBool( p_demux, "avi-interleaved" ) )
     {
         p_demux->pf_demux = Demux_UnSeekable;
     }
index 21cdd56425a3e24ecc63e2da2def85835d304711..355f9e5e91bfa0b855d692608370db1a7d09138b 100644 (file)
@@ -42,7 +42,7 @@ EbmlParser::EbmlParser( EbmlStream *es, EbmlElement *el_start, demux_t *p_demux
     mi_level = 1;
     mi_user_level = 1;
     mb_keep = false;
-    mb_dummy = var_InheritInteger( p_demux, "mkv-use-dummy" );
+    mb_dummy = var_InheritBool( p_demux, "mkv-use-dummy" );
 }
 
 EbmlParser::~EbmlParser( void )
@@ -124,7 +124,7 @@ void EbmlParser::Reset( demux_t *p_demux )
     mi_user_level = mi_level = 1;
     // a little faster and cleaner
     m_es->I_O().setFilePointer( static_cast<KaxSegment*>(m_el[0])->GetGlobalPosition(0) );
-    mb_dummy = var_InheritInteger( p_demux, "mkv-use-dummy" );
+    mb_dummy = var_InheritBool( p_demux, "mkv-use-dummy" );
 }
 
 EbmlElement *EbmlParser::Get( void )
index b091feda3f8092f2932d4e2dd64cc6ae8335fa17..1abec2b4cdfd62d2ec00775d7b4c353c166e3da2 100644 (file)
@@ -1032,7 +1032,7 @@ void matroska_segment_c::ParseChapters( KaxChapters *chapters )
                 }
                 else if( MKV_IS_ID( l, KaxEditionFlagOrdered ) )
                 {
-                    p_edition->b_ordered = var_InheritInteger( &sys.demuxer, "mkv-use-ordered-chapters" ) ? (uint8(*static_cast<KaxEditionFlagOrdered *>( l )) != 0) : 0;
+                    p_edition->b_ordered = var_InheritBool( &sys.demuxer, "mkv-use-ordered-chapters" ) ? (uint8(*static_cast<KaxEditionFlagOrdered *>( l )) != 0) : 0;
                 }
                 else if( MKV_IS_ID( l, KaxEditionFlagDefault ) )
                 {
index 27dfd929500e860a3ceb38119fc46348a446d5c4..01906f98d57e702961ee5375ab00295ffe99e851 100644 (file)
@@ -139,7 +139,7 @@ static int Open( vlc_object_t * p_this )
         goto error;
     }
 
-    if (var_InheritInteger( p_demux, "mkv-preload-local-dir" ))
+    if (var_InheritBool( p_demux, "mkv-preload-local-dir" ))
     {
         /* get the files from the same dir from the same family (based on p_demux->psz_path) */
         if (p_demux->psz_path[0] != '\0' && !strcmp(p_demux->psz_access, ""))
@@ -421,7 +421,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, double f_percent, chapter_it
     }
 
     /* seek without index or without date */
-    if( f_percent >= 0 && (var_InheritInteger( p_demux, "mkv-seek-percent" ) || !p_segment->b_cues || i_date < 0 ))
+    if( f_percent >= 0 && (var_InheritBool( p_demux, "mkv-seek-percent" ) || !p_segment->b_cues || i_date < 0 ))
     {
         if( p_sys->f_duration >= 0 && p_segment->b_cues )
         {
index facbb7ad41e4d16a0496a75615717d59a5b52c6b..e55941e32f324178438f9700d2300529882e83a3 100644 (file)
@@ -538,7 +538,7 @@ static int OpenBlending( intf_thread_t *p_intf )
             p_intf->p_sys->fmt_out.i_sar_den;
     p_intf->p_sys->p_blend->fmt_out.video.i_chroma =
             p_intf->p_sys->fmt_out.i_chroma;
-    if( var_InheritInteger( p_intf, "freetype-yuvp" ) )
+    if( var_InheritBool( p_intf, "freetype-yuvp" ) )
         p_intf->p_sys->p_blend->fmt_in.video.i_chroma =
                 VLC_CODEC_YUVP;
     else
index cb77d316c012557fa8137dc971a9aa2ef779f64a..328ec14242ffb1d0a135dab129a405da72ae4c11 100644 (file)
@@ -87,7 +87,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
     {
         volumeSlider = new SoundSlider( this,
             config_GetInt( p_intf, "volume-step" ),
-            var_InheritInteger( p_intf, "qt-volume-complete" ),
+            var_InheritBool( p_intf, "qt-volume-complete" ),
             var_InheritString( p_intf, "qt-slider-colours" ) );
     }
     else
index 562dfc83a8a30f92fb62fe67e17c681e7144d32e..7627de0bf7fe52619e3858bf22f27af2d6870932 100644 (file)
@@ -110,7 +110,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     b_autoresize = var_InheritBool( p_intf, "qt-video-autoresize" );
 
     /* Are we in the enhanced always-video mode or not ? */
-    i_visualmode = var_InheritInteger( p_intf, "qt-minimal-view" );
+    i_visualmode = var_InheritBool( p_intf, "qt-minimal-view" );
 
     /* Do we want anoying popups or not */
     b_notificationEnabled = var_InheritBool( p_intf, "qt-notification" );
index 587bc23aac24df930a6ea56f869f9a3bd0913b11..2cea9331817b45745388df5723b5d70869dda7a4 100644 (file)
@@ -141,7 +141,7 @@ static int Open( vlc_object_t *p_this )
     xosd_set_font( p_osd, psz_font );
     xosd_set_colour( p_osd, psz_colour );
     xosd_set_timeout( p_osd, 3 );
-    xosd_set_pos( p_osd, var_InheritInteger( p_intf, "xosd-position" ) ?
+    xosd_set_pos( p_osd, var_InheritBool( p_intf, "xosd-position" ) ?
                                         XOSD_bottom: XOSD_top );
     xosd_set_horizontal_offset( p_osd,
                     var_InheritInteger( p_intf, "xosd-text-offset" ) );