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 );
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 );
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;
}
#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 );
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 )
}
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 |
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 )
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;
}
}
#if !defined( SYS_DARWIN )
- if( !var_InheritInteger( p_this, "hq-resampling" ) )
+ if( !var_InheritBool( p_this, "hq-resampling" ) )
{
return VLC_EGENERIC;
}
}
/* 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 );
}
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,
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;
}
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;
/* 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;
}
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 )
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 )
}
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 ) )
{
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, ""))
}
/* 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 )
{
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
{
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
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" );
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" ) );