]> git.sesse.net Git - vlc/commitdiff
Fix compilation
authorChristophe Mutricy <xtophe@videolan.org>
Wed, 6 Jan 2010 20:20:55 +0000 (20:20 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Wed, 6 Jan 2010 20:22:36 +0000 (20:22 +0000)
Fix 9a00da44cb60b01b142ae1a9a333833cf1fb0ab6

modules/control/dbus.c
modules/gui/qt4/components/info_panels.cpp

index eeefed7d9c92ba7133e377365cc0af5f419456ee..ed8f88cd3f3909f8719934e359dd7abffe977f9b 100644 (file)
@@ -52,6 +52,7 @@
 #include <vlc_aout.h>
 #include <vlc_interface.h>
 #include <vlc_playlist.h>
+#include <vlc_meta.h>
 
 #include <math.h>
 
@@ -1192,7 +1193,10 @@ static int GetInputMeta( input_item_t* p_input,
 
     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 );
index a4f33640148b8db75cc364e6883e42e9a9e1e741..76d176e1112c7f4e916c38bd979a13e108ae75c3 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <assert.h>
 #include <vlc_url.h>
+#include <vlc_meta.h>
 
 #include <QTreeWidget>
 #include <QHeaderView>
@@ -362,13 +363,11 @@ void ExtraMetaPanel::update( input_item_t *p_item )
         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 ) );