[vlc-devel] commit: Compile fix (Christophe Mutricy )
git version control
git at videolan.org
Sun Sep 28 01:21:05 CEST 2008
vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sun Sep 28 00:24:12 2008 +0100| [f5292e55aa88b99533607ff1c191f2285d5e0d29] | committer: Christophe Mutricy
Compile fix
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5292e55aa88b99533607ff1c191f2285d5e0d29
---
modules/gui/skins2/src/skin_main.cpp | 2 +-
modules/gui/skins2/src/vlcproc.cpp | 7 ++++---
modules/gui/skins2/vars/playtree.cpp | 4 ++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index 6c45727..bd01836 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/modules/gui/skins2/src/skin_main.cpp
@@ -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;
diff --git a/modules/gui/skins2/src/vlcproc.cpp b/modules/gui/skins2/src/vlcproc.cpp
index d7556bb..5eef52c 100644
--- a/modules/gui/skins2/src/vlcproc.cpp
+++ b/modules/gui/skins2/src/vlcproc.cpp
@@ -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();
diff --git a/modules/gui/skins2/vars/playtree.cpp b/modules/gui/skins2/vars/playtree.cpp
index 7a79025..a15676b 100644
--- a/modules/gui/skins2/vars/playtree.cpp
+++ b/modules/gui/skins2/vars/playtree.cpp
@@ -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 )
More information about the vlc-devel
mailing list