[vlc-commits] playlist_CurrentInput: more specific prototype

Rémi Denis-Courmont git at videolan.org
Wed Jan 1 19:51:45 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan  1 19:19:13 2014 +0200| [8935d02e07e9dd04b938e0a285c4198a3676e35d] | committer: Rémi Denis-Courmont

playlist_CurrentInput: more specific prototype

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8935d02e07e9dd04b938e0a285c4198a3676e35d
---

 include/vlc_playlist.h |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index ad54147..e32fdaa 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -33,6 +33,8 @@ extern "C" {
 
 TYPEDEF_ARRAY(playlist_item_t*, playlist_item_array_t)
 
+struct intf_thread_t;
+
 /**
  * \file
  * This file contain structures and function prototypes related
@@ -392,10 +394,9 @@ VLC_API void playlist_EnableAudioFilter( playlist_t *, const char *, bool );
  * Inline functions
  ***********************************************************************/
 /** Small helper tp get current playing input or NULL. Release the input after use. */
-#define pl_CurrentInput(a) __pl_CurrentInput( VLC_OBJECT(a) )
-static  inline input_thread_t * __pl_CurrentInput( vlc_object_t * p_this )
+static inline input_thread_t *pl_CurrentInput( struct intf_thread_t *intf )
 {
-    return playlist_CurrentInput( pl_Get( p_this ) );
+    return playlist_CurrentInput( pl_Get( (vlc_object_t *)intf ) );
 }
 
 /** Tell if the playlist is empty */



More information about the vlc-commits mailing list