Changeset 1c10df82d7f1f62c75510fa68e4683260336b9d2
- Timestamp:
- 13/07/08 16:17:54
(6 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1215958674 +0200
- git-parent:
[2c2f5641c87b844c474783cc313a0d2f2b305a37]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1215946212 +0200
- Message:
playlist: Defines a small helper to directly access current input.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rab915f9 |
r1c10df8 |
|
| 416 | 416 | } |
|---|
| 417 | 417 | |
|---|
| | 418 | /** Small helper tp get current playing input or NULL. Release the input after use. */ |
|---|
| | 419 | #define pl_CurrentInput(a) __pl_CurrentInput( VLC_OBJECT(a) ) |
|---|
| | 420 | static inline input_thread_t * __pl_CurrentInput( vlc_object_t * p_this ) |
|---|
| | 421 | { |
|---|
| | 422 | playlist_t * p_playlist = pl_Yield( p_this ); |
|---|
| | 423 | if( !p_playlist ) return NULL; |
|---|
| | 424 | input_thread_t * p_input = playlist_CurrentInput( p_playlist ); |
|---|
| | 425 | pl_Release( p_this ); |
|---|
| | 426 | return p_input; |
|---|
| | 427 | } |
|---|
| 418 | 428 | |
|---|
| 419 | 429 | /** Tell if the playlist is currently running */ |
|---|