pool = p_gc->pool;
vlc_spin_unlock (&p_gc->spin);
- if( refs == 0 && pool == false )
+ if( refs == 0 && !pool )
{
vlc_spin_destroy (&p_gc->spin);
p_gc->pf_destructor (p_gc);
{
mmi_object.i_object_type = EN50221_MMI_ANSW;
mmi_object.u.answ.b_ok = b_ok;
- if ( b_ok == false )
+ if ( !b_ok )
{
mmi_object.u.answ.psz_answ = strdup("");
}
else
{
mmi_object.i_object_type = EN50221_MMI_MENU_ANSW;
- if ( b_ok == false )
+ if ( !b_ok )
{
mmi_object.u.menu_answ.i_choice = 0;
}
free( psz_newbands );
psz_newbands = psz;
}
- if( p_sys->b_first == false )
+ if( !p_sys->b_first )
{
vlc_mutex_unlock( &p_sys->lock );
var_SetString( p_aout, "equalizer-bands", psz_newbands );
b_alive = false;
}
- if( b_alive == false )
+ if( !b_alive )
{
msg_Warn( p_aout, "selected audio device is not alive, switching to default device" );
p_sys->i_selected_dev = p_sys->i_default_dev;
p_sys->i_stream_id = p_streams[i];
p_sys->i_stream_index = i;
- if( p_sys->b_revert == false )
+ if( !p_sys->b_revert )
{
/* Retrieve the original format of this stream first if not done so already */
i_param_size = sizeof( p_sys->sfmt_revert );
if( strlen( newval.psz_string ) > 0 )
{
- if ( ( !strncmp( newval.psz_string, "on", 2 ) && ( val.b_bool ) ) ||
- ( !strncmp( newval.psz_string, "off", 3 ) && ( val.b_bool == false ) ) )
+ if ( ( !strncmp( newval.psz_string, "on", 2 ) && val.b_bool ) ||
+ ( !strncmp( newval.psz_string, "off", 3 ) && !val.b_bool ) )
{
b_update = false;
}
if( strlen( newval.psz_string ) > 0 )
{
- if ( ( !strncmp( newval.psz_string, "on", 2 ) && ( val.b_bool ) ) ||
- ( !strncmp( newval.psz_string, "off", 3 ) && ( val.b_bool == false ) ) )
+ if ( ( !strncmp( newval.psz_string, "on", 2 ) && val.b_bool ) ||
+ ( !strncmp( newval.psz_string, "off", 3 ) && !val.b_bool ) )
{
b_update = false;
}
if( strlen( newval.psz_string ) > 0 )
{
- if ( ( !strncmp( newval.psz_string, "on", 2 ) && ( val.b_bool ) ) ||
- ( !strncmp( newval.psz_string, "off", 3 ) && ( val.b_bool == false ) ) )
+ if ( ( !strncmp( newval.psz_string, "on", 2 ) && val.b_bool ) ||
+ ( !strncmp( newval.psz_string, "off", 3 ) && !val.b_bool ) )
{
b_update = false;
}
result = tune->read (data, size);
free (data);
- if (result==false)
+ if (!result)
goto error;
player = new sidplay2();
sys->tune->selectSong (0);
result = (sys->player->load (sys->tune) >=0 );
sys->player->fastForward (100);
- if (result==false)
+ if (!result)
goto error;
/* Callbacks */
if (unlikely(block==NULL))
return 0;
- if (sys->tune->getStatus() == false) {
+ if (!sys->tune->getStatus()) {
block_Release (block);
return 0;
}
int i_idx = (int) va_arg (args, int);
sys->tune->selectSong (i_idx+1);
bool result = (sys->player->load (sys->tune) >=0 );
- if (result == false)
+ if (!result)
return VLC_EGENERIC;
demux->info.i_title = i_idx;
lua_pop( L, 1 );
/* obj var func data callbacks index */
}
- if( b_found == false )
+ if( !b_found )
/* obj var func data callbacks */
return luaL_error( L, "Couldn't find matching callback." );
/* else */
vlc_array_t* delete_ids = vlc_array_new();
for( i = 0; i < i_mon_rows; i++ )
{
- if( pb_processed[i] == false )
+ if( !pb_processed[i] )
{
/* This file doesn't exist anymore. Let's...urm...delete it. */
ml_element_t* find = ( ml_element_t* ) calloc( 1, sizeof( ml_element_t ) );
continue; /* holding on until next_exchange */
/* handshake if needed */
- if( p_sys->b_handshaked == false )
+ if( !p_sys->b_handshaked )
{
msg_Dbg( p_intf, "Handshaking with last.fm ..." );
break;
}
/* if handshake failed let's restart the loop */
- if( p_sys->b_handshaked == false )
+ if( !p_sys->b_handshaked )
continue;
}
var_Get( p_input, "state", &state_value );
- if( p_sys->b_meta_read == false && state_value.i_int >= PLAYING_S )
+ if( !p_sys->b_meta_read && state_value.i_int >= PLAYING_S )
{
ReadMetaData( p_intf );
return VLC_SUCCESS;
int i;
p_es->i_last = p_buffer->i_dts;
- if ( p_es->id == NULL && p_es->b_error != true )
+ if ( !p_es->id && !p_es->b_error )
{
p_es->id = p_stream->p_next->pf_add( p_stream->p_next, &p_es->fmt );
if ( p_es->id == NULL )
}
}
- if ( p_es->b_error != true )
+ if ( !p_es->b_error )
p_stream->p_next->pf_send( p_stream->p_next, p_es->id, p_buffer );
else
block_ChainRelease( p_buffer );
static int Send(sout_stream_t *p_stream, sout_stream_id_t *p_es,
block_t *p_buffer)
{
- if (p_es->id == NULL && p_es->b_error != true)
+ if (p_es->id == NULL && !p_es->b_error)
{
p_es->id = p_stream->p_next->pf_add(p_stream->p_next, &p_es->fmt);
if (p_es->id == NULL)
}
}
- if ((p_es->b_error != true) && p_es->b_enabled)
+ if (!p_es->b_error && p_es->b_enabled)
p_stream->p_next->pf_send(p_stream->p_next, p_es->id, p_buffer);
else
block_ChainRelease(p_buffer);
/*
* Threshold mode drops out everything about luma, contrast and gamma.
*/
- if( b_thres != true )
+ if( !b_thres )
{
/* Contrast is a fast but kludged function, so I put this gap to be
/*
* Threshold mode drops out everything about luma, contrast and gamma.
*/
- if( b_thres != true )
+ if( !b_thres )
{
/* Contrast is a fast but kludged function, so I put this gap to be
DWORD CAtmoExternalCaptureInput::Execute(void)
{
- while ((this->m_bTerminated == ATMO_FALSE) && (this->m_pAtmoThread->b_die == false)) {
+ while ((this->m_bTerminated == ATMO_FALSE) && !this->m_pAtmoThread->b_die) {
vlc_mutex_lock( &m_WakeupLock );
vlc_cond_timedwait(&m_WakeupCond, &m_WakeupLock, mdate() + 75000 );
filter_sys_t *p_sys = p_filter->p_sys;
if(p_sys->p_atmo_config)
{
- if(b_for_thread == false)
+ if(!b_for_thread)
{
/* open com port */
/* setup Output Threads ... */
}
}
- if( p_sys->b_updated == false )
+ if( !p_sys->b_updated )
return NULL;
subpicture_t *p_spu = NULL;
vlc_mutex_lock( &p_sys->lock );
if( p_sys->last_time + p_sys->i_refresh > date )
goto out;
- if( p_sys->b_need_update == false )
+ if( !p_sys->b_need_update )
goto out;
p_spu = filter_NewSubpicture( p_filter );
udr.w = htons(p_sys->i_vnc_width);
udr.h = htons(p_sys->i_vnc_height);
- if( write_exact(p_filter, p_sys->i_socket, (char*)&udr,
- sz_rfbFramebufferUpdateRequestMsg) == false)
+ if( !write_exact(p_filter, p_sys->i_socket, (char*)&udr,
+ sz_rfbFramebufferUpdateRequestMsg) )
{
msg_Err( p_filter, "Could not write rfbFramebufferUpdateRequestMsg." );
p_sys->b_continue = false;
while( vlc_object_alive( p_thread_obj ) )
{
msleep( i_poll_interval_microsec );
- if( write_exact(p_filter, p_sys->i_socket, (char*)&udr,
- sz_rfbFramebufferUpdateRequestMsg) == false)
+ if( !write_exact(p_filter, p_sys->i_socket, (char*)&udr,
+ sz_rfbFramebufferUpdateRequestMsg))
{
msg_Err( p_filter, "Could not write rfbFramebufferUpdateRequestMsg." );
break;
p_ml = libvlc_priv (p_this->p_libvlc)->p_ml;
assert( VLC_OBJECT( p_ml ) != p_this );
if( p_ml == NULL &&
- var_GetBool( p_this->p_libvlc, "load-media-library-on-startup" ) == false )
+ !var_GetBool( p_this->p_libvlc, "load-media-library-on-startup" ) )
{
libvlc_priv (p_this->p_libvlc)->p_ml
= ml_Create( VLC_OBJECT( p_this->p_libvlc ), NULL );