[vlc-devel] commit: Added missing const to sout_NewInstance. (Laurent Aimar )

git version control git at videolan.org
Wed Aug 27 00:21:02 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Aug 26 15:56:02 2008 +0200| [fa2757f7f34d533c4d4fd73a47007534bb16829e] | committer: Laurent Aimar 

Added missing const to sout_NewInstance.

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

 src/stream_output/stream_output.c |    2 +-
 src/stream_output/stream_output.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 8f205c8..0ac9fd5 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -73,7 +73,7 @@ static void mrl_Clean( mrl_t *p_mrl );
 /*****************************************************************************
  * sout_NewInstance: creates a new stream output instance
  *****************************************************************************/
-sout_instance_t *__sout_NewInstance( vlc_object_t *p_parent, char * psz_dest )
+sout_instance_t *__sout_NewInstance( vlc_object_t *p_parent, const char *psz_dest )
 {
     static const char typename[] = "stream output";
     sout_instance_t *p_sout;
diff --git a/src/stream_output/stream_output.h b/src/stream_output/stream_output.h
index 7745a9e..b4f7483 100644
--- a/src/stream_output/stream_output.h
+++ b/src/stream_output/stream_output.h
@@ -47,7 +47,7 @@ struct sout_packetizer_input_t
 };
 
 #define sout_NewInstance(a,b) __sout_NewInstance(VLC_OBJECT(a),b)
-VLC_EXPORT( sout_instance_t *,  __sout_NewInstance,  ( vlc_object_t *, char * ) );
+VLC_EXPORT( sout_instance_t *,  __sout_NewInstance,  ( vlc_object_t *, const char * ) );
 VLC_EXPORT( void,               sout_DeleteInstance, ( sout_instance_t * ) );
 
 VLC_EXPORT( sout_packetizer_input_t *, sout_InputNew,( sout_instance_t *, es_format_t * ) );




More information about the vlc-devel mailing list