Changeset d90d8b7da24381831dcf067618836e4cb4a5bb05
- 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
| ref7ff28 |
rd90d8b7 |
|
| 295 | 295 | VLC_EXPORT( int, playlist_Control, ( playlist_t *p_playlist, int i_query, bool b_locked, ... ) ); |
|---|
| 296 | 296 | |
|---|
| | 297 | /** Get current playing input. The object is retained. |
|---|
| | 298 | */ |
|---|
| | 299 | VLC_EXPORT( input_thread_t *, playlist_CurrentInput, ( playlist_t *p_playlist ) ); |
|---|
| | 300 | |
|---|
| 297 | 301 | /** Clear the playlist |
|---|
| 298 | 302 | * \param b_locked TRUE if playlist is locked when entering this function |
|---|
| … | … | |
| 412 | 416 | } |
|---|
| 413 | 417 | |
|---|
| | 418 | |
|---|
| 414 | 419 | /** Tell if the playlist is currently running */ |
|---|
| 415 | 420 | #define playlist_IsPlaying( pl ) ( pl->status.i_status == PLAYLIST_RUNNING ) |
|---|
| rda67320 |
rd90d8b7 |
|
| 245 | 245 | playlist_Clear |
|---|
| 246 | 246 | playlist_Control |
|---|
| | 247 | playlist_CurrentInput |
|---|
| 247 | 248 | playlist_DeleteFromInput |
|---|
| 248 | 249 | playlist_DeleteInputInParent |
|---|
| r9f2fb28 |
rd90d8b7 |
|
| 257 | 257 | input_selected_stream_changed, p_playlist ); |
|---|
| 258 | 258 | } |
|---|
| | 259 | } |
|---|
| | 260 | |
|---|
| | 261 | /** Get current playing input. |
|---|
| | 262 | */ |
|---|
| | 263 | input_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; |
|---|
| 259 | 271 | } |
|---|
| 260 | 272 | |
|---|