[vlc-commits] playlist: constify playlist_ItemGetByInput()

Rémi Denis-Courmont git at videolan.org
Tue Nov 15 21:04:44 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 15 20:46:48 2016 +0200| [3e6f68692f8d45382f7bd971474c782405841e08] | committer: Rémi Denis-Courmont

playlist: constify playlist_ItemGetByInput()

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

 include/vlc_playlist.h | 4 +++-
 src/playlist/search.c  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 8ed337c..a85f064 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -350,7 +350,9 @@ VLC_API int playlist_NodeAddCopy( playlist_t *, playlist_item_t *, playlist_item
 
 /********************************** Item search *************************/
 VLC_API playlist_item_t * playlist_ItemGetById(playlist_t *, int ) VLC_USED;
-VLC_API playlist_item_t * playlist_ItemGetByInput(playlist_t *,input_item_t * ) VLC_USED;
+VLC_API playlist_item_t *playlist_ItemGetByInput(playlist_t *,
+                                                 const input_item_t * )
+VLC_USED;
 
 VLC_API int playlist_LiveSearchUpdate(playlist_t *, playlist_item_t *, const char *, bool );
 
diff --git a/src/playlist/search.c b/src/playlist/search.c
index 0c711ca..b72c712 100644
--- a/src/playlist/search.c
+++ b/src/playlist/search.c
@@ -60,7 +60,7 @@ playlist_item_t* playlist_ItemGetById( playlist_t * p_playlist , int i_id )
  * @return the item, or NULL on failure
  */
 playlist_item_t* playlist_ItemGetByInput( playlist_t * p_playlist,
-                                          input_item_t *p_item )
+                                          const input_item_t *p_item )
 {
     int i;
     PL_ASSERT_LOCKED;



More information about the vlc-commits mailing list