[vlc-devel] [PATCH] transcode: clean function declarations

Steve Lhomme robux4 at videolabs.io
Wed Jul 19 15:30:02 CEST 2017


Some are gone, some are only used in the file they are defined.
---
 modules/stream_out/transcode/audio.c     |  2 +-
 modules/stream_out/transcode/spu.c       |  2 +-
 modules/stream_out/transcode/transcode.h | 11 -----------
 modules/stream_out/transcode/video.c     |  2 +-
 4 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index e92af6e72c..3c26b02d4e 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -153,7 +153,7 @@ static block_t *transcode_dequeue_all_audios( sout_stream_id_sys_t *id )
     return p_audio_bufs;
 }
 
-int transcode_audio_new( sout_stream_t *p_stream,
+static int transcode_audio_new( sout_stream_t *p_stream,
                                 sout_stream_id_sys_t *id )
 {
     sout_stream_sys_t *p_sys = p_stream->p_sys;
diff --git a/modules/stream_out/transcode/spu.c b/modules/stream_out/transcode/spu.c
index ccdf3fb155..913272624d 100644
--- a/modules/stream_out/transcode/spu.c
+++ b/modules/stream_out/transcode/spu.c
@@ -67,7 +67,7 @@ static subpicture_t *transcode_dequeue_all_subs( sout_stream_id_sys_t *id )
     return p_subpics;
 }
 
-int transcode_spu_new( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static int transcode_spu_new( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
 {
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
diff --git a/modules/stream_out/transcode/transcode.h b/modules/stream_out/transcode/transcode.h
index 20d8f73cdc..add3645231 100644
--- a/modules/stream_out/transcode/transcode.h
+++ b/modules/stream_out/transcode/transcode.h
@@ -125,17 +125,8 @@ struct sout_stream_id_sys_t
 
 };
 
-/* OSD */
-
-int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_sys_t *id );
-void transcode_osd_close( sout_stream_t *p_stream, sout_stream_id_sys_t *id);
-int transcode_osd_process( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
-                                  block_t *in, block_t **out );
-bool transcode_osd_add( sout_stream_t *, const es_format_t *, sout_stream_id_sys_t *);
-
 /* SPU */
 
-int  transcode_spu_new    ( sout_stream_t *, sout_stream_id_sys_t * );
 void transcode_spu_close  ( sout_stream_t *, sout_stream_id_sys_t * );
 int  transcode_spu_process( sout_stream_t *, sout_stream_id_sys_t *,
                                    block_t *, block_t ** );
@@ -143,7 +134,6 @@ bool transcode_spu_add    ( sout_stream_t *, const es_format_t *, sout_stream_id
 
 /* AUDIO */
 
-int  transcode_audio_new    ( sout_stream_t *, sout_stream_id_sys_t * );
 void transcode_audio_close  ( sout_stream_id_sys_t * );
 int  transcode_audio_process( sout_stream_t *, sout_stream_id_sys_t *,
                                      block_t *, block_t ** );
@@ -152,7 +142,6 @@ bool transcode_audio_add    ( sout_stream_t *, const es_format_t *,
 
 /* VIDEO */
 
-int  transcode_video_new    ( sout_stream_t *, sout_stream_id_sys_t * );
 void transcode_video_close  ( sout_stream_t *, sout_stream_id_sys_t * );
 int  transcode_video_process( sout_stream_t *, sout_stream_id_sys_t *,
                                      block_t *, block_t ** );
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 1274524e9a..28b56a7a3c 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -162,7 +162,7 @@ static picture_t *transcode_dequeue_all_pics( sout_stream_id_sys_t *id )
     return p_pics;
 }
 
-int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
 {
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
-- 
2.12.1



More information about the vlc-devel mailing list