(const char*)name,
PLAYLIST_APPEND, PLAYLIST_END,
(mtime_t) 0,
- (const char **) ppsz_options, i_pos,
+ i_options, (const char **) ppsz_options, VLC_INPUT_OPTION_TRUSTED,
true, pl_Unlocked );
}
PL_LOCK;
for( i_dummy = 0; i_dummy < playlist_CurrentSize(p_playlist) ; i_dummy++ )
{
- playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_dummy, pl_Locked );
+ playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_dummy );
if( p_item )
{
ppsz_text[0] = p_item->p_input->psz_name;
{
char *psz_perm;
- psz_perm = (char *) malloc(sizeof(char)*10);
+ psz_perm = (char *) malloc(10);
strncpy( psz_perm, "----------", sizeof("----------"));
/* determine permission modes */
{
intf_thread_t *p_intf = GtkGetIntf( widget );
- vlc_mutex_lock( &p_intf->change_lock );
- vlc_object_kill( p_intf->p_libvlc );
- vlc_mutex_unlock( &p_intf->change_lock );
+ libvlc_Quit( p_intf->p_libvlc );
msg_Dbg( p_intf, "about to exit vlc ... signaled" );
return TRUE;
intf_thread_t *p_intf = GtkGetIntf( widget );
msg_Dbg( p_intf, "SliderButton Release" );
- vlc_mutex_lock( &p_intf->change_lock );
p_intf->p_sys->b_slider_free = 1;
- vlc_mutex_unlock( &p_intf->change_lock );
return TRUE;
}
intf_thread_t *p_intf = GtkGetIntf( widget );
msg_Dbg( p_intf, "SliderButton Press" );
- vlc_mutex_lock( &p_intf->change_lock );
p_intf->p_sys->b_slider_free = 0;
- vlc_mutex_unlock( &p_intf->change_lock );
return FALSE;
}
p_model = gtk_tree_view_get_model(treeview);
if (!p_model)
{
- msg_Err(p_intf, "PDA: Filelist model contains a NULL pointer\n" );
+ msg_Err(p_intf, "PDA: Filelist model contains a NULL pointer" );
return;
}
if (!gtk_tree_model_get_iter(p_model, &iter, path))
ppsz_options = (char **) malloc(11 *sizeof(char*));
if (ppsz_options == NULL)
- {
- msg_Err(p_intf, "No memory to allocate for v4l options.");
return;
- }
for (i=0; i<11; i++)
{
- ppsz_options[i] = (char *) malloc(VLC_MAX_MRL * sizeof(char));
+ ppsz_options[i] = (char *) malloc(VLC_MAX_MRL);
if (ppsz_options[i] == NULL)
{
- msg_Err(p_intf, "No memory to allocate for v4l options string %i.", i);
for (i-=1; i>=0; i--)
free(ppsz_options[i]);
free(ppsz_options);
p_model = gtk_tree_view_get_model(treeview);
if (!p_model)
{
- msg_Err(p_intf, "PDA: Playlist model contains a NULL pointer\n" );
+ msg_Err(p_intf, "PDA: Playlist model contains a NULL pointer" );
return;
}
if (!gtk_tree_model_get_iter(p_model, &iter, path))
ppsz_options = (char **) malloc(3 *sizeof(char*));
if (ppsz_options == NULL)
- {
- msg_Err(p_intf, "No memory to allocate for v4l options.");
return;
- }
for (i=0; i<3; i++)
{
- ppsz_options[i] = (char *) malloc(VLC_MAX_MRL * sizeof(char));
+ ppsz_options[i] = (char *) malloc(VLC_MAX_MRL);
if (ppsz_options[i] == NULL)
{
- msg_Err(p_intf, "No memory to allocate for v4l options string %i.", i);
for (i-=1; i>=0; i--)
free(ppsz_options[i]);
free(ppsz_options);