VLC_EXPORT( void, update_iterator_Delete, ( update_iterator_t * ) );
VLC_EXPORT( unsigned int, update_iterator_Action, ( update_iterator_t *, int ) );
VLC_EXPORT( unsigned int, update_iterator_ChooseMirrorAndFile, ( update_iterator_t *, int, int, int ) );
-VLC_EXPORT( void, update_download, ( update_iterator_t *, char * ) );
+VLC_EXPORT( void, update_download, ( update_iterator_t *, const char * ) );
/**
* @}
void InputManager::UpdateNowPlaying()
{
- const char *psz_now_playing =
- input_item_GetNowPlaying( input_GetItem(p_input) ) ?
- strdup( input_GetItem(p_input)->p_meta->psz_nowplaying ):
- strdup( "" );
+ const char *psz_now_playing = input_item_GetNowPlaying( input_GetItem(p_input) );
if( psz_now_playing && *psz_now_playing )
{
p_main_intf->statusbar->SetStatusText(
p_main_intf->statusbar->SetStatusText(
wxU(input_GetItem(p_input)->psz_name), 2 );
}
- free( psz_now_playing );
}
void InputManager::UpdateButtons( vlc_bool_t b_play )
wxString msg;
wxString duration = wxU( "" );
- char *psz_artist;
- if( input_item_GetArtist( o_item->p_input ) )
+ const char *psz_artist = input_item_GetArtist( p_item->p_input );
+ if( ! psz_artist )
{
- psz_artist = strdup( input_item_GetArtist( o_item->p_input ) );
- }
- else psz_artist = strdup( "" );
-
- if( !psz_artist )
- {
- UnlockPlaylist( p_intf->p_sys, p_playlist );
- return;
+ psz_artist = "";
}
char psz_duration[MSTRTIME_MAX_SIZE];
msg = wxString(wxU( psz_artist )) + wxT(" - ") +
wxString(wxU(p_item->p_input->psz_name)) + duration;
}
- free( psz_artist );
treectrl->SetItemText( item , msg );
treectrl->SetItemImage( item, p_item->p_input->i_type );
* \param psz_dest destination file path
* \return nothing
*/
-void update_download( update_iterator_t *p_uit, char *psz_dest )
+void update_download( update_iterator_t *p_uit, const char *psz_dest )
{
download_thread_t *p_dt =
vlc_object_create( p_uit->p_u->p_libvlc, sizeof( download_thread_t ) );