Commit 2c7bc975 authored by Christophe Mutricy's avatar Christophe Mutricy

Fix compilation

Fix 9a00da44
parent 9a80046d
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_interface.h> #include <vlc_interface.h>
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <vlc_meta.h>
#include <math.h> #include <math.h>
...@@ -1192,7 +1193,10 @@ static int GetInputMeta( input_item_t* p_input, ...@@ -1192,7 +1193,10 @@ static int GetInputMeta( input_item_t* p_input,
vlc_mutex_lock( &p_input->lock ); vlc_mutex_lock( &p_input->lock );
if( p_input->p_meta ) 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 ); vlc_mutex_unlock( &p_input->lock );
ADD_VLC_META_STRING( 18, URI ); ADD_VLC_META_STRING( 18, URI );
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <assert.h> #include <assert.h>
#include <vlc_url.h> #include <vlc_url.h>
#include <vlc_meta.h>
#include <QTreeWidget> #include <QTreeWidget>
#include <QHeaderView> #include <QHeaderView>
...@@ -362,13 +363,11 @@ void ExtraMetaPanel::update( input_item_t *p_item ) ...@@ -362,13 +363,11 @@ void ExtraMetaPanel::update( input_item_t *p_item )
return; return;
} }
vlc_dictionary_t * p_dict = &p_meta->extra_tags; char ** ppsz_allkey = vlc_meta_CopyExtraNames( p_meta);
char ** ppsz_allkey = vlc_dictionary_all_keys( p_dict );
for( int i = 0; ppsz_allkey[i] ; i++ ) for( int i = 0; ppsz_allkey[i] ; i++ )
{ {
const char * psz_value = (const char *)vlc_dictionary_value_for_key( const char * psz_value = vlc_meta_GetExtra( p_meta, ppsz_allkey[i] );
p_dict, ppsz_allkey[i] );
QStringList tempItem; QStringList tempItem;
tempItem.append( qfu( ppsz_allkey[i] ) + " : "); tempItem.append( qfu( ppsz_allkey[i] ) + " : ");
tempItem.append( qfu( psz_value ) ); tempItem.append( qfu( psz_value ) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment