Changeset d90d8b7da24381831dcf067618836e4cb4a5bb05

Show
Ignore:
Timestamp:
07/05/08 15:50:01 (2 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1215265801 +0200
git-parent:

[b94083f55404f83a91bba60913e4db6c3e32f9c0]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1215263403 +0200
Message:

playlist: Define playlist_CurrentInput(), that returns current playing input.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_playlist.h

    ref7ff28 rd90d8b7  
    295295VLC_EXPORT( int, playlist_Control, ( playlist_t *p_playlist, int i_query, bool b_locked, ...  ) ); 
    296296 
     297/** Get current playing input. The object is retained. 
     298 */ 
     299VLC_EXPORT( input_thread_t *, playlist_CurrentInput, ( playlist_t *p_playlist ) ); 
     300 
    297301/** Clear the playlist 
    298302 * \param b_locked TRUE if playlist is locked when entering this function 
     
    412416} 
    413417 
     418 
    414419/** Tell if the playlist is currently running */ 
    415420#define playlist_IsPlaying( pl ) ( pl->status.i_status == PLAYLIST_RUNNING ) 
  • src/libvlccore.sym

    rda67320 rd90d8b7  
    245245playlist_Clear 
    246246playlist_Control 
     247playlist_CurrentInput 
    247248playlist_DeleteFromInput 
    248249playlist_DeleteInputInParent 
  • src/playlist/engine.c

    r9f2fb28 rd90d8b7  
    257257                          input_selected_stream_changed, p_playlist ); 
    258258    } 
     259} 
     260 
     261/** Get current playing input. 
     262 */ 
     263input_thread_t * playlist_CurrentInput( playlist_t * p_playlist ) 
     264{ 
     265    input_thread_t * p_input; 
     266    PL_LOCK; 
     267    p_input = p_playlist->p_input; 
     268    if( p_input ) vlc_object_yield( p_input ); 
     269    PL_UNLOCK; 
     270    return p_input; 
    259271} 
    260272