/*****************************************************************************
* vlc_mutex_init: initialize a mutex
*****************************************************************************/
-#define vlc_mutex_init( P_THIS, P_MUTEX ) \
+#define vlc_mutex_init( P_MUTEX ) \
__vlc_mutex_init( P_MUTEX )
/*****************************************************************************
p_sys->p_capture_graph_builder2 = NULL;
p_sys->p_control = NULL;
- vlc_mutex_init( p_this, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
vlc_cond_init( p_this, &p_sys->wait );
/* Build directshow graph */
p_sys->p_frame = NULL;
p_sys->p_ev = NULL;
- vlc_mutex_init( p_access, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
p_sys->i_node = DiscoverAVC( p_access, &p_sys->i_port, p_sys->i_guid );
if( p_sys->i_node < 0 )
p_sys->p_ev->p_frame = NULL;
p_sys->p_ev->pp_last = &p_sys->p_ev->p_frame;
p_sys->p_ev->p_access = p_access;
- vlc_mutex_init( p_access, &p_sys->p_ev->lock );
+ vlc_mutex_init( &p_sys->p_ev->lock );
vlc_thread_create( p_sys->p_ev, "dv event thread handler", Raw1394EventThread,
VLC_THREAD_PRIORITY_OUTPUT, false );
vlc_acl_t *p_acl = NULL;
httpd_file_sys_t *f;
- vlc_mutex_init( p_access, &p_sys->httpd_mutex );
+ vlc_mutex_init( &p_sys->httpd_mutex );
vlc_cond_init( p_access, &p_sys->httpd_cond );
p_sys->b_request_frontend_info = p_sys->b_request_mmi_info = false;
p_sys->i_httpd_timeout = 0;
demux_sys_t *p_sys = p_ev->p_demux->p_sys;
vlc_object_t *p_vout = NULL;
- vlc_mutex_init( p_ev, &p_ev->lock );
+ vlc_mutex_init( &p_ev->lock );
p_ev->b_moved = false;
p_ev->b_clicked = false;
p_ev->i_key_action = 0;
}
vlc_cond_init( p_sys->p_thread, &p_sys->p_thread->wait );
- vlc_mutex_init( p_sys->p_thread, &p_sys->p_thread->lock );
+ vlc_mutex_init( &p_sys->p_thread->lock );
p_sys->p_thread->result_connect = 1;
p_sys->p_thread->result_play = 1;
p_sys->b_playing = false;
p_sys->start_date = 0;
vlc_cond_init( p_aout, &p_sys->wait );
- vlc_mutex_init( p_aout, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
/* Get device name */
if( (psz_device = config_GetPsz( p_aout, "alsadev" )) == NULL )
/* Condition because SetProperty is asynchronious */
vlc_cond_init( p_aout, &w.cond );
- vlc_mutex_init( p_aout, &w.lock );
+ vlc_mutex_init( &w.lock );
vlc_mutex_lock( &w.lock );
/* Install the callback */
pa_thread = vlc_object_create( p_aout, sizeof(pa_thread_t) );
pa_thread->p_aout = p_aout;
pa_thread->b_error = false;
- vlc_mutex_init( p_aout, &pa_thread->lock_wait );
+ vlc_mutex_init( &pa_thread->lock_wait );
vlc_cond_init( p_aout, &pa_thread->wait );
pa_thread->b_wait = false;
- vlc_mutex_init( p_aout, &pa_thread->lock_signal );
+ vlc_mutex_init( &pa_thread->lock_signal );
vlc_cond_init( p_aout, &pa_thread->signal );
pa_thread->b_signal = false;
p_dec->pf_decode_video = DecodeBlock;
p_dec->p_sys->p_image = p_image;
- vlc_mutex_init( p_dec, &p_dec->p_sys->lock );
+ vlc_mutex_init( &p_dec->p_sys->lock );
return VLC_SUCCESS;
}
pp_contexts[i] = vlc_object_create( p_enc,
sizeof(struct thread_context_t) );
pp_contexts[i]->p_context = p_sys->p_context;
- vlc_mutex_init( p_enc, &pp_contexts[i]->lock );
+ vlc_mutex_init( &pp_contexts[i]->lock );
vlc_cond_init( p_enc, &pp_contexts[i]->cond );
pp_contexts[i]->b_work = 0;
pp_contexts[i]->b_done = 0;
p_intf->p_sys->pi_socket_listen = pi_socket;
p_intf->p_sys->i_socket = -1;
p_intf->p_sys->psz_unix_path = psz_unix_path;
- vlc_mutex_init( p_intf, &p_intf->p_sys->status_lock );
+ vlc_mutex_init( &p_intf->p_sys->status_lock );
p_intf->p_sys->i_last_state = PLAYLIST_STOPPED;
/* Non-buffered stdout */
,b_pci_packet_set(false)
,p_ev(NULL)
{
- vlc_mutex_init( &demuxer, &lock_demuxer );
+ vlc_mutex_init( &lock_demuxer );
}
virtual ~demux_sys_t()
p_ev = (event_thread_t *) vlc_object_create( &demuxer, sizeof( event_thread_t ) );
p_ev->p_demux = &demuxer;
p_ev->b_die = false;
- vlc_mutex_init( p_ev, &p_ev->lock );
+ vlc_mutex_init( &p_ev->lock );
vlc_thread_create( p_ev, "mkv event thread handler", EventThread,
VLC_THREAD_PRIORITY_LOW, false );
}
VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
{
/* Init */
- vlc_mutex_init( p_intf, &lock );
+ vlc_mutex_init( &lock );
p_vout = NULL;
hide(); setMinimumSize( 16, 16 );
videoSize.rwidth() = -1;
m_cmdFlush( this )
{
// Initialize the mutex
- vlc_mutex_init( pIntf, &m_lock );
+ vlc_mutex_init( &m_lock );
// Create a timer
OSFactory *pOsFactory = OSFactory::instance( pIntf );
p_parent = _p_parent;
p_child_window = NULL;
- vlc_mutex_init( p_intf, &lock );
+ vlc_mutex_init( &lock );
p_vout = NULL;
p_parent = _p_parent;
p_child_window = 0;
- vlc_mutex_init( p_intf, &lock );
+ vlc_mutex_init( &lock );
b_auto_size = p_intf->p_sys->b_video_autosize;
p_intf->p_sys = p_sys;
- vlc_mutex_init( p_this, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
p_playlist = pl_Yield( p_intf );
PL_LOCK;
}
#ifdef HAVE_FONTCONFIG
- vlc_mutex_init( p_filter, &p_sys->fontconfig_lock );
+ vlc_mutex_init( &p_sys->fontconfig_lock );
p_sys->b_fontconfig_ok = false;
p_sys->p_fontconfig = NULL;
if( p_lock == NULL)
return ENOMEM;
- i_val = vlc_mutex_init( (vlc_object_t *)NULL, p_lock );
+ i_val = vlc_mutex_init( p_lock );
if( i_val )
free( p_lock );
else
/* No certificate validation by default */
p_sys->pf_handshake = gnutls_ContinueHandshake;
- vlc_mutex_init( p_server, &p_sys->cache_lock );
+ vlc_mutex_init( &p_sys->cache_lock );
/* Sets server's credentials */
val = gnutls_certificate_allocate_credentials( &p_sys->x509_cred );
return VLC_EGENERIC;
}
- vlc_mutex_init( p_this, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
p_intf->p_sys = p_sys;
vlc_UrlClean( &url );
- vlc_mutex_init( p_vod, &p_sys->lock_media );
+ vlc_mutex_init( &p_sys->lock_media );
TAB_INIT( p_sys->i_media, p_sys->media );
p_sys->i_media_id = 0;
TAB_APPEND( p_sys->i_media, p_sys->media, p_media );
vlc_mutex_unlock( &p_sys->lock_media );
- vlc_mutex_init( p_vod, &p_media->lock );
+ vlc_mutex_init( &p_media->lock );
p_media->psz_session_name = strdup("");
p_media->psz_session_description = strdup("");
p_media->psz_session_url = strdup("");
Lockable( Cookie* c )
{
- vlc_mutex_init( c->serviceDiscovery, &_mutex );
+ vlc_mutex_init( &_mutex );
}
~Lockable()
p_stream->p_sys = p_sys;
- vlc_mutex_init( p_stream, &p_sys->lock_sdp );
- vlc_mutex_init( p_stream, &p_sys->lock_es );
+ vlc_mutex_init( &p_sys->lock_sdp );
+ vlc_mutex_init( &p_sys->lock_es );
psz = var_GetNonEmptyString( p_stream, SOUT_CFG_PREFIX "mux" );
if( psz != NULL )
msg_Dbg( p_stream, "maximum RTP packet size: %d bytes", id->i_mtu );
- vlc_mutex_init( p_stream, &id->lock_sink );
+ vlc_mutex_init( &id->lock_sink );
id->sinkc = 0;
id->sinkv = NULL;
id->rtsp_id = NULL;
rtsp->host = NULL;
rtsp->url = NULL;
rtsp->psz_path = NULL;
- vlc_mutex_init( p_stream, &rtsp->lock );
+ vlc_mutex_init( &rtsp->lock );
rtsp->port = (url->i_port > 0) ? url->i_port : 554;
rtsp->psz_path = strdup( ( url->psz_path != NULL ) ? url->psz_path : "/" );
int i_priority = p_sys->b_high_priority ? VLC_THREAD_PRIORITY_OUTPUT :
VLC_THREAD_PRIORITY_VIDEO;
p_sys->id_video = id;
- vlc_mutex_init( p_stream, &p_sys->lock_out );
+ vlc_mutex_init( &p_sys->lock_out );
vlc_cond_init( p_stream, &p_sys->cond );
memset( p_sys->pp_pics, 0, sizeof(p_sys->pp_pics) );
p_sys->i_first_pic = 0;
config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
- vlc_mutex_init( p_filter, &p_sys->mask_lock );
+ vlc_mutex_init( &p_sys->mask_lock );
psz_string =
var_CreateGetStringCommand( p_filter, CFG_PREFIX "mask" );
var_AddCallback( p_filter, CFG_PREFIX "mask", MaskCallback,
this->m_pAtmoConnection = NULL;
this->m_pCurrentEffectThread = NULL;
- vlc_mutex_init( p_atmo_filter, &m_lock );
+ vlc_mutex_init( &m_lock );
}
#else
{
m_pCurrentFramePixels = NULL;
vlc_cond_init( this->m_pAtmoThread, &m_WakeupCond );
- vlc_mutex_init( m_pAtmoThread, &m_WakeupLock );
+ vlc_mutex_init( &m_WakeupLock );
msg_Dbg( m_pAtmoThread, "CAtmoExternalCaptureInput created.");
}
vlc_object_attach( m_pAtmoThread, m_pOwner);
- vlc_mutex_init( m_pAtmoThread, &m_TerminateLock );
+ vlc_mutex_init( &m_TerminateLock );
err = vlc_cond_init( m_pAtmoThread, &m_TerminateCond );
if(err) {
msg_Err( m_pAtmoThread, "vlc_cond_init failed %d",err);
p_sys->i_atmo_height = 48;
- vlc_mutex_init( p_filter, &p_sys->filter_lock );
+ vlc_mutex_init( &p_sys->filter_lock );
#if defined(WIN32)
p_vout->p_sys->b_double_rate = false;
p_vout->p_sys->last_date = 0;
p_vout->p_sys->p_vout = 0;
- vlc_mutex_init( p_vout, &p_vout->p_sys->filter_lock );
+ vlc_mutex_init( &p_vout->p_sys->filter_lock );
#if defined(CAN_COMPILE_C_ALTIVEC)
if( vlc_CPU() & CPU_CAPABILITY_ALTIVEC )
var_AddCallback( p_filter, CFG_PREFIX "y", EraseCallback, p_sys );
var_AddCallback( p_filter, CFG_PREFIX "mask", EraseCallback, p_sys );
- vlc_mutex_init( p_filter, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
return VLC_SUCCESS;
}
var_AddCallback( p_filter, "logo-transparency", LogoCallback, p_sys );
var_AddCallback( p_filter, "logo-repeat", LogoCallback, p_sys );
- vlc_mutex_init( p_filter, &p_logo_list->lock );
+ vlc_mutex_init( &p_logo_list->lock );
vlc_mutex_lock( &p_logo_list->lock );
LoadLogoList( p_this, p_logo_list );
p_filter->pf_sub_filter = Filter;
- vlc_mutex_init( p_filter, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
vlc_mutex_lock( &p_sys->lock );
var_Create( p_libvlc, "mosaic-lock", VLC_VAR_MUTEX );
config_ChainParse( p_filter, FILTER_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
#endif
- vlc_mutex_init( p_filter, &p_filter->p_sys->lock );
+ vlc_mutex_init( &p_filter->p_sys->lock );
return VLC_SUCCESS;
}
return VLC_ENOMEM;
}
- vlc_mutex_init( p_filter, &p_sys->lock );
+ vlc_mutex_init( &p_sys->lock );
vlc_mutex_lock( &p_sys->lock );
config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,
p_vout->p_sys->hwnd = p_vout->p_sys->hvideownd = NULL;
p_vout->p_sys->hparent = p_vout->p_sys->hfswnd = NULL;
p_vout->p_sys->i_changes = 0;
- vlc_mutex_init( p_vout, &p_vout->p_sys->lock );
+ vlc_mutex_init( &p_vout->p_sys->lock );
SetRectEmpty( &p_vout->p_sys->rect_display );
SetRectEmpty( &p_vout->p_sys->rect_parent );
p_vout->p_sys->hparent = p_vout->p_sys->hfswnd = NULL;
p_vout->p_sys->i_changes = 0;
p_vout->p_sys->b_wallpaper = 0;
- vlc_mutex_init( p_vout, &p_vout->p_sys->lock );
+ vlc_mutex_init( &p_vout->p_sys->lock );
SetRectEmpty( &p_vout->p_sys->rect_display );
SetRectEmpty( &p_vout->p_sys->rect_parent );
p_vout->p_sys->hwnd = p_vout->p_sys->hvideownd = NULL;
p_vout->p_sys->hparent = p_vout->p_sys->hfswnd = NULL;
p_vout->p_sys->i_changes = 0;
- vlc_mutex_init( p_vout, &p_vout->p_sys->lock );
+ vlc_mutex_init( &p_vout->p_sys->lock );
SetRectEmpty( &p_vout->p_sys->rect_display );
SetRectEmpty( &p_vout->p_sys->rect_parent );
p_vout->p_sys->hwnd = p_vout->p_sys->hvideownd = NULL;
p_vout->p_sys->hparent = p_vout->p_sys->hfswnd = NULL;
p_vout->p_sys->i_changes = 0;
- vlc_mutex_init( p_vout, &p_vout->p_sys->lock );
+ vlc_mutex_init( &p_vout->p_sys->lock );
SetRectEmpty( &p_vout->p_sys->rect_display );
SetRectEmpty( &p_vout->p_sys->rect_parent );
return VLC_ENOMEM;
}
- vlc_mutex_init( p_vout, &p_vout->p_sys->lock );
+ vlc_mutex_init( &p_vout->p_sys->lock );
/* Open display, using the "display" config variable or the DISPLAY
* environment variable */
free( p_sys );
return VLC_EGENERIC;
}
- vlc_mutex_init( p_filter, &p_thread->lock );
+ vlc_mutex_init( &p_thread->lock );
vlc_cond_init( p_filter, &p_thread->wait );
p_thread->i_blocks = 0;
}
/* Initialize members. */
- vlc_mutex_init( p_parent, &p_aout->input_fifos_lock );
- vlc_mutex_init( p_parent, &p_aout->mixer_lock );
- vlc_mutex_init( p_parent, &p_aout->output_fifo_lock );
+ vlc_mutex_init( &p_aout->input_fifos_lock );
+ vlc_mutex_init( &p_aout->mixer_lock );
+ vlc_mutex_init( &p_aout->output_fifo_lock );
p_aout->i_nb_inputs = 0;
p_aout->mixer.f_multiplier = 1.0;
p_aout->mixer.b_error = 1;
}
memset( p_input, 0, sizeof(aout_input_t) );
- vlc_mutex_init( p_aout, &p_input->lock );
+ vlc_mutex_init( &p_input->lock );
p_input->b_changed = 0;
p_input->b_error = 1;
p_new->b_playlist_locked = 0;
p_new->ref_count = 1;
p_new->p_callback_list = NULL;
- vlc_mutex_init(p_libvlc_int, &p_new->instance_lock);
- vlc_mutex_init(p_libvlc_int, &p_new->event_callback_lock);
+ vlc_mutex_init(&p_new->instance_lock);
+ vlc_mutex_init(&p_new->event_callback_lock);
libvlc_event_init(p_new, p_e);
p_em->p_libvlc_instance = p_libvlc_inst;
libvlc_retain( p_libvlc_inst );
vlc_array_init( &p_em->listeners_groups );
- vlc_mutex_init( p_libvlc_inst->p_libvlc_int, &p_em->object_lock );
+ vlc_mutex_init( &p_em->object_lock );
vlc_mutex_init_recursive( p_libvlc_inst->p_libvlc_int, &p_em->event_sending_lock );
return p_em;
}
return NULL;
}
- vlc_mutex_init( p_inst->p_libvlc_int, &p_mlist->object_lock );
+ vlc_mutex_init( &p_mlist->object_lock );
vlc_array_init( &p_mlist->items );
p_mlist->i_refcount = 1;
p_mlp->current_playing_item_path = NULL;
p_mlp->p_mi = NULL;
p_mlp->p_mlist = NULL;
- vlc_mutex_init( p_instance->p_libvlc_int, &p_mlp->object_lock );
+ vlc_mutex_init( &p_mlp->object_lock );
p_mlp->p_event_manager = libvlc_event_manager_new( p_mlp,
p_instance,
p_e );
p_mlv->p_this_view_data = this_view_data;
- vlc_mutex_init( p_mlv->p_libvlc_instance->p_libvlc_int, &p_mlv->object_lock );
+ vlc_mutex_init( &p_mlv->object_lock );
p_mlv->i_refcount = 1;
return p_mlv;
* - No lock held in constructor
* - Lock when accessing all variable this lock is held
* - Lock when attempting to destroy the object the lock is also held */
- vlc_mutex_init( p_mi->p_libvlc_instance->p_libvlc_int,
- &p_mi->object_lock );
+ vlc_mutex_init( &p_mi->object_lock );
p_mi->p_event_manager = libvlc_event_manager_new( p_mi,
p_libvlc_instance, p_e );
if( libvlc_exception_raised( p_e ) )
p_owner->b_cc_supported = true;
}
- vlc_mutex_init( p_dec, &p_owner->lock_cc );
+ vlc_mutex_init( &p_owner->lock_cc );
for( i = 0; i < 4; i++ )
{
p_owner->pb_cc_present[i] = false;
p_input->p->slave = NULL;
/* Init control buffer */
- vlc_mutex_init( p_input, &p_input->p->lock_control );
+ vlc_mutex_init( &p_input->p->lock_control );
p_input->p->i_control = 0;
/* Parse input options */
}
memset( &p_input->p->counters, 0, sizeof( p_input->p->counters ) );
- vlc_mutex_init( p_input, &p_input->p->counters.counters_lock );
+ vlc_mutex_init( &p_input->p->counters.counters_lock );
/* Attach only once we are ready */
vlc_object_attach( p_input, p_parent );
p_i->p_stats = NULL;
p_i->p_meta = NULL;
- vlc_mutex_init( p_o, &p_i->lock );
+ vlc_mutex_init( &p_i->lock );
vlc_event_manager_init( &p_i->event_manager, p_i, p_o );
vlc_event_manager_register_event_type( &p_i->event_manager,
vlc_InputItemMetaChanged );
return NULL;
}
- vlc_mutex_init( p_this->p_libvlc, &p_vlm->lock );
+ vlc_mutex_init( &p_vlm->lock );
p_vlm->i_id = 1;
TAB_INIT( p_vlm->i_media, p_vlm->media );
TAB_INIT( p_vlm->i_schedule, p_vlm->schedule );
p_intf->b_menu_change = false;
/* Initialize mutexes */
- vlc_mutex_init( p_intf, &p_intf->change_lock );
+ vlc_mutex_init( &p_intf->change_lock );
/* Attach interface to its parent object */
vlc_object_attach( p_intf, p_this );
msg_Dbg( p_libvlc, "libvlc was configured with %s", CONFIGURE_LINE );
/* Initialize mutexes */
- vlc_mutex_init( p_libvlc, &p_libvlc->timer_lock );
- vlc_mutex_init( p_libvlc, &p_libvlc->config_lock );
+ vlc_mutex_init( &p_libvlc->timer_lock );
+ vlc_mutex_init( &p_libvlc->config_lock );
#ifdef __APPLE__
vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW );
#endif
vlc_object_release( p_libvlc );
return VLC_ENOMEM;
}
- vlc_mutex_init( p_libvlc, &p_libvlc->p_stats->lock );
+ vlc_mutex_init( &p_libvlc->p_stats->lock );
p_libvlc->p_stats_computer = NULL;
/* Init the array that holds every input item */
if( !p_fifo )
return NULL;
- vlc_mutex_init( NULL, &p_fifo->lock );
+ vlc_mutex_init( &p_fifo->lock );
vlc_cond_init( NULL, &p_fifo->wait );
p_fifo->p_first = NULL;
p_fifo->pp_last = &p_fifo->p_first;
CFRelease( all_locales );
}
- vlc_mutex_init( p_this, &vlc_global()->iconv_lock );
+ vlc_mutex_init( &vlc_global()->iconv_lock );
vlc_global()->iconv_macosx = vlc_iconv_open( "UTF-8", "UTF-8-MAC" );
}
{
p_em->p_obj = p_obj;
p_em->p_parent_object = p_parent_obj;
- vlc_mutex_init( p_parent_obj, &p_em->object_lock );
+ vlc_mutex_init( &p_em->object_lock );
/* We need a recursive lock here, because we need to be able
* to call libvlc_event_detach even if vlc_event_send is in
void __msg_Create( vlc_object_t *p_this )
{
int i;
- vlc_mutex_init( (vlc_object_t *)NULL,
- &(p_this->p_libvlc->msg_bank.lock) );
+ vlc_mutex_init( &(p_this->p_libvlc->msg_bank.lock) );
for( i = 0; i < 2; i++ )
{
- vlc_mutex_init( (vlc_object_t *)NULL, &QUEUE(i).lock );
+ vlc_mutex_init( &QUEUE(i).lock );
QUEUE(i).b_overflow = false;
QUEUE(i).i_id = i;
QUEUE(i).i_start = 0;
p_libvlc_global->i_objects = 0;
p_libvlc_global->pp_objects = NULL;
p_priv->b_attached = true;
- vlc_mutex_init( p_new, &structure_lock );
+ vlc_mutex_init( &structure_lock );
}
else
{
p_new->p_private = NULL;
/* Initialize mutexes and condvars */
- vlc_mutex_init( p_new, &p_new->object_lock );
+ vlc_mutex_init( &p_new->object_lock );
vlc_cond_init( p_new, &p_new->object_wait );
- vlc_mutex_init( p_new, &p_priv->var_lock );
+ vlc_mutex_init( &p_priv->var_lock );
vlc_spin_init( &p_priv->spin );
p_priv->pipes[0] = p_priv->pipes[1] = -1;
return NULL;
memset( p_stats, 0, sizeof(*p_stats) );
- vlc_mutex_init( p_input, &p_stats->lock );
+ vlc_mutex_init( &p_stats->lock );
stats_ReinitInputStats( p_stats );
return p_stats;
p_update = (update_t *)malloc( sizeof( update_t ) );
if( !p_update ) return NULL;
- vlc_mutex_init( p_this, &p_update->lock );
+ vlc_mutex_init( &p_update->lock );
p_update->p_libvlc = p_this->p_libvlc;
p_var->pf_cmp = CmpAddress;
p_var->pf_free = FreeMutex;
p_var->val.p_address = malloc( sizeof(vlc_mutex_t) );
- vlc_mutex_init( p_this, (vlc_mutex_t*)p_var->val.p_address );
+ vlc_mutex_init( (vlc_mutex_t*)p_var->val.p_address );
break;
case VLC_VAR_LIST:
p_var->pf_cmp = CmpAddress;
free( stream );
return NULL;
}
- vlc_mutex_init( host, &stream->lock );
+ vlc_mutex_init( &stream->lock );
if( psz_mime && *psz_mime )
{
stream->psz_mime = strdup( psz_mime );
vlc_object_unlock( host );
host->httpd = httpd;
- vlc_mutex_init( httpd, &host->lock );
+ vlc_mutex_init( &host->lock );
host->i_ref = 1;
host->fds = net_ListenTCP( p_this, psz_host, i_port );
url = malloc( sizeof( httpd_url_t ) );
url->host = host;
- vlc_mutex_init( host->httpd, &url->lock );
+ vlc_mutex_init( &url->lock );
url->psz_url = strdup( psz_url );
url->psz_user = strdup( psz_user ? psz_user : "" );
url->psz_password = strdup( psz_password ? psz_password : "" );
VariablesInit( p_playlist );
/* Initialise data structures */
- vlc_mutex_init( p_playlist, &p_playlist->gc_lock );
+ vlc_mutex_init( &p_playlist->gc_lock );
p_playlist->i_last_playlist_id = 0;
p_playlist->p_input = NULL;
p_sap->psz_object_name = strdup( "sap announcer" );
- vlc_mutex_init( p_sap, &p_sap->object_lock );
+ vlc_mutex_init( &p_sap->object_lock );
p_sap->pf_add = announce_SAPAnnounceAdd;
p_sap->pf_del = announce_SAPAnnounceDel;
p_sout->i_out_pace_nocontrol = 0;
p_sout->p_sys = NULL;
- vlc_mutex_init( p_sout, &p_sout->lock );
+ vlc_mutex_init( &p_sout->lock );
if( psz_dest && psz_dest[0] == '#' )
{
p_sout->psz_chain = strdup( &psz_dest[1] );
p_vout->i_par_num = p_vout->i_par_den = 1;
/* Initialize locks */
- vlc_mutex_init( p_vout, &p_vout->picture_lock );
- vlc_mutex_init( p_vout, &p_vout->change_lock );
- vlc_mutex_init( p_vout, &p_vout->vfilter_lock );
+ vlc_mutex_init( &p_vout->picture_lock );
+ vlc_mutex_init( &p_vout->change_lock );
+ vlc_mutex_init( &p_vout->vfilter_lock );
/* Mouse coordinates */
var_Create( p_vout, "mouse-x", VLC_VAR_INTEGER );
/* Register the default subpicture channel */
p_spu->i_channel = 2;
- vlc_mutex_init( p_this, &p_spu->subpicture_lock );
+ vlc_mutex_init( &p_spu->subpicture_lock );
vlc_object_attach( p_spu, p_this );