[vlc-devel] commit: Added missing const to input_item_SetURI. (Laurent Aimar )
git version control
git at videolan.org
Wed Jan 7 20:29:35 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan 6 21:51:51 2009 +0100| [ab85aafbf4d916d211ce6d425ba2eeaf186966f4] | committer: Laurent Aimar
Added missing const to input_item_SetURI.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab85aafbf4d916d211ce6d425ba2eeaf186966f4
---
include/vlc_input.h | 2 +-
src/input/item.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_input.h b/include/vlc_input.h
index e31aed4..553c906 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -128,7 +128,7 @@ VLC_EXPORT( bool, input_item_MetaMatch, ( input_item_t *p_i, vlc_meta_type_t met
VLC_EXPORT( char *, input_item_GetMeta, ( input_item_t *p_i, vlc_meta_type_t meta_type ) );
VLC_EXPORT( char *, input_item_GetName, ( input_item_t * p_i ) );
VLC_EXPORT( char *, input_item_GetURI, ( input_item_t * p_i ) );
-VLC_EXPORT( void, input_item_SetURI, ( input_item_t * p_i, char * psz_uri ));
+VLC_EXPORT( void, input_item_SetURI, ( input_item_t * p_i, const char *psz_uri ));
VLC_EXPORT(mtime_t, input_item_GetDuration, ( input_item_t * p_i ) );
VLC_EXPORT( void, input_item_SetDuration, ( input_item_t * p_i, mtime_t i_duration ));
VLC_EXPORT( bool, input_item_IsPreparsed, ( input_item_t *p_i ));
diff --git a/src/input/item.c b/src/input/item.c
index ef1c673..eacd66e 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -331,7 +331,7 @@ char *input_item_GetURI( input_item_t *p_i )
vlc_mutex_unlock( &p_i->lock );
return psz_s;
}
-void input_item_SetURI( input_item_t *p_i, char *psz_uri )
+void input_item_SetURI( input_item_t *p_i, const char *psz_uri )
{
vlc_mutex_lock( &p_i->lock );
More information about the vlc-devel
mailing list