#include <vlc_aout.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
+#include <vlc_meta.h>
#include <math.h>
vlc_mutex_lock( &p_input->lock );
if( p_input->p_meta )
- ADD_META( 17, DBUS_TYPE_INT32, p_input->p_meta->i_status );
+ {
+ int i_status = vlc_meta_GetStatus( p_input->p_meta );
+ ADD_META( 17, DBUS_TYPE_INT32, i_status );
+ }
vlc_mutex_unlock( &p_input->lock );
ADD_VLC_META_STRING( 18, URI );
#include <assert.h>
#include <vlc_url.h>
+#include <vlc_meta.h>
#include <QTreeWidget>
#include <QHeaderView>
return;
}
- vlc_dictionary_t * p_dict = &p_meta->extra_tags;
- char ** ppsz_allkey = vlc_dictionary_all_keys( p_dict );
+ char ** ppsz_allkey = vlc_meta_CopyExtraNames( p_meta);
for( int i = 0; ppsz_allkey[i] ; i++ )
{
- const char * psz_value = (const char *)vlc_dictionary_value_for_key(
- p_dict, ppsz_allkey[i] );
+ const char * psz_value = vlc_meta_GetExtra( p_meta, ppsz_allkey[i] );
QStringList tempItem;
tempItem.append( qfu( ppsz_allkey[i] ) + " : ");
tempItem.append( qfu( psz_value ) );