p_item->input.i_duration = i_duration;
if( i_duration != -1 )
{
- secstotimestr( psz_buffer, i_duration/1000000 );
+ secstotimestr( psz_buffer, (int)(i_duration/1000000) );
}
else
{
return;
}
}
- return ITEM_TYPE_UNKNOWN;
+ p_item->i_type = ITEM_TYPE_UNKNOWN;
}
int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
{
- vlc_mutex_lock( &p_playlist->object_lock );
-
playlist_view_t *p_view;
vlc_value_t val;
+ vlc_mutex_lock( &p_playlist->object_lock );
+
#ifdef PLAYLIST_PROFILE
p_playlist->request_date = mdate();
#endif
*/
int playlist_ViewInsert( playlist_t *p_playlist, int i_id, char *psz_name )
{
- playlist_view_t *p_view = playlist_ViewCreate( p_playlist, i_id , psz_name);
+ playlist_view_t *p_view =
+ playlist_ViewCreate( p_playlist, i_id , psz_name );
if( !p_view )
{
msg_Err( p_playlist, "Creation failed" );
vlc_mutex_lock( &p_playlist->object_lock );
- INSERT_ELEM( p_playlist->pp_views,
- p_playlist->i_views,
- p_playlist->i_views,
- p_view );
+ INSERT_ELEM( p_playlist->pp_views, p_playlist->i_views,
+ p_playlist->i_views, p_view );
vlc_mutex_unlock( &p_playlist->object_lock );
+ return VLC_SUCCESS;
}