]> git.sesse.net Git - vlc/commitdiff
Compile fix
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 27 Sep 2008 23:24:12 +0000 (00:24 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 27 Sep 2008 23:24:12 +0000 (00:24 +0100)
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/vars/playtree.cpp

index 6c4572767c127787c98af54de3920399bd31f074..bd018360d69a6518ba281df28e1eed730a6f4cda 100644 (file)
@@ -322,7 +322,7 @@ static int DemuxOpen( vlc_object_t *p_this )
             playlist_t *p_playlist = pl_Hold( p_this );
             // Make sure the item is deleted afterwards
             /// \bug does not always work
-            p_playlist->status.p_item->i_flags |= PLAYLIST_REMOVE_FLAG;
+            playlist_CurrentPlayingItem( p_playlist )->i_flags |= PLAYLIST_REMOVE_FLAG;
             vlc_object_release( p_playlist );
 
             vlc_value_t val;
index d7556bbbe426f11287a94a861d24f15eb8a128e1..5eef52cdb36588d46095becc7b396b9bb65a2332 100644 (file)
@@ -328,7 +328,8 @@ void VlcProc::refreshInput()
     // Update the input
     if( getIntf()->p_sys->p_input == NULL )
     {
-        getIntf()->p_sys->p_input = getIntf()->p_sys->p_playlist->p_input;
+        getIntf()->p_sys->p_input =
+            playlist_CurrentInput( getIntf()->p_sys->p_playlist );
         if( getIntf()->p_sys->p_input )
             vlc_object_hold( getIntf()->p_sys->p_input );
     }
@@ -560,10 +561,10 @@ int VlcProc::onInteraction( vlc_object_t *pObj, const char *pVariable,
 
 void VlcProc::updateStreamName( playlist_t *p_playlist )
 {
-    if( p_playlist && p_playlist->p_input )
+    if( p_playlist && playlist_CurrentInput( p_playlist ))
     {
         // Get playlist item information
-        input_item_t *pItem = input_GetItem(p_playlist->p_input);
+        input_item_t *pItem = input_GetItem(playlist_CurrentInput( p_playlist));
 
         VarText &rStreamName = getStreamNameVar();
         VarText &rStreamURI = getStreamURIVar();
index 7a79025d887b3e387f2b3309cc47e8453837b847..a15676bfa825b2a2e6f93c52d1437d2d2b8232da 100644 (file)
@@ -136,7 +136,7 @@ void Playtree::onUpdateItem( int id )
         playlist_item_t* pNode = (playlist_item_t*)(it->m_pData);
         UString *pName = new UString( getIntf(), pNode->p_input->psz_name );
         it->m_cString = UStringPtr( pName );
-        it->m_playing = m_pPlaylist->status.p_item == pNode;
+        it->m_playing = playlist_CurrentPlayingItem( m_pPlaylist ) == pNode;
         if( it->m_playing ) descr.b_active_item = true;
     }
     else
@@ -200,7 +200,7 @@ void Playtree::buildNode( playlist_item_t *pNode, VarTree &rTree )
                                    pNode->pp_children[i]->p_input->psz_name );
         rTree.add( pNode->pp_children[i]->i_id, UStringPtr( pName ),
                      false,
-                     m_pPlaylist->status.p_item == pNode->pp_children[i],
+                     playlist_CurrentPlayingItem(m_pPlaylist) == pNode->pp_children[i],
                      false, pNode->pp_children[i]->i_flags & PLAYLIST_RO_FLAG,
                      pNode->pp_children[i] );
         if( pNode->pp_children[i]->i_children )