Commit f5292e55 authored by Christophe Mutricy's avatar Christophe Mutricy

Compile fix

parent c205ecf9
...@@ -322,7 +322,7 @@ static int DemuxOpen( vlc_object_t *p_this ) ...@@ -322,7 +322,7 @@ static int DemuxOpen( vlc_object_t *p_this )
playlist_t *p_playlist = pl_Hold( p_this ); playlist_t *p_playlist = pl_Hold( p_this );
// Make sure the item is deleted afterwards // Make sure the item is deleted afterwards
/// \bug does not always work /// \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_object_release( p_playlist );
vlc_value_t val; vlc_value_t val;
......
...@@ -328,7 +328,8 @@ void VlcProc::refreshInput() ...@@ -328,7 +328,8 @@ void VlcProc::refreshInput()
// Update the input // Update the input
if( getIntf()->p_sys->p_input == NULL ) 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 ) if( getIntf()->p_sys->p_input )
vlc_object_hold( 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, ...@@ -560,10 +561,10 @@ int VlcProc::onInteraction( vlc_object_t *pObj, const char *pVariable,
void VlcProc::updateStreamName( playlist_t *p_playlist ) 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 // 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 &rStreamName = getStreamNameVar();
VarText &rStreamURI = getStreamURIVar(); VarText &rStreamURI = getStreamURIVar();
......
...@@ -136,7 +136,7 @@ void Playtree::onUpdateItem( int id ) ...@@ -136,7 +136,7 @@ void Playtree::onUpdateItem( int id )
playlist_item_t* pNode = (playlist_item_t*)(it->m_pData); playlist_item_t* pNode = (playlist_item_t*)(it->m_pData);
UString *pName = new UString( getIntf(), pNode->p_input->psz_name ); UString *pName = new UString( getIntf(), pNode->p_input->psz_name );
it->m_cString = UStringPtr( pName ); 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; if( it->m_playing ) descr.b_active_item = true;
} }
else else
...@@ -200,7 +200,7 @@ void Playtree::buildNode( playlist_item_t *pNode, VarTree &rTree ) ...@@ -200,7 +200,7 @@ void Playtree::buildNode( playlist_item_t *pNode, VarTree &rTree )
pNode->pp_children[i]->p_input->psz_name ); pNode->pp_children[i]->p_input->psz_name );
rTree.add( pNode->pp_children[i]->i_id, UStringPtr( pName ), rTree.add( pNode->pp_children[i]->i_id, UStringPtr( pName ),
false, 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, false, pNode->pp_children[i]->i_flags & PLAYLIST_RO_FLAG,
pNode->pp_children[i] ); pNode->pp_children[i] );
if( pNode->pp_children[i]->i_children ) if( pNode->pp_children[i]->i_children )
......
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