[vlc-commits] sout: constify fmt in sout_InputNew

Francois Cartegnie git at videolan.org
Fri Jul 7 18:05:55 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul  7 15:53:18 2017 +0200| [4011551b84024365f5cb349d7f029d803529a66d] | committer: Francois Cartegnie

sout: constify fmt in sout_InputNew

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

 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 675df86668..d4492f32d9 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -154,7 +154,7 @@ void sout_DeleteInstance( sout_instance_t * p_sout )
  * Packetizer/Input
  *****************************************************************************/
 sout_packetizer_input_t *sout_InputNew( sout_instance_t *p_sout,
-                                        es_format_t *p_fmt )
+                                        const es_format_t *p_fmt )
 {
     sout_packetizer_input_t *p_input;
 
diff --git a/src/stream_output/stream_output.h b/src/stream_output/stream_output.h
index a138fee840..c7ff95269d 100644
--- a/src/stream_output/stream_output.h
+++ b/src/stream_output/stream_output.h
@@ -44,7 +44,7 @@ sout_instance_t *sout_NewInstance( vlc_object_t *, const char * );
 #define sout_NewInstance(a,b) sout_NewInstance(VLC_OBJECT(a),b)
 void sout_DeleteInstance( sout_instance_t * );
 
-sout_packetizer_input_t *sout_InputNew( sout_instance_t *, es_format_t * );
+sout_packetizer_input_t *sout_InputNew( sout_instance_t *, const es_format_t * );
 int sout_InputDelete( sout_packetizer_input_t * );
 int sout_InputSendBuffer( sout_packetizer_input_t *, block_t* );
 bool sout_InputIsEmpty(sout_packetizer_input_t *);



More information about the vlc-commits mailing list