[vlc-commits] transcode: clean function declarations
Steve Lhomme
git at videolan.org
Fri Jul 21 13:26:22 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Jul 13 14:30:44 2017 +0200| [23f18d5e9581ae04a4c9e228bf71ed551869433e] | committer: Jean-Baptiste Kempf
transcode: clean function declarations
Some are gone, some are only used in the file they are defined.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23f18d5e9581ae04a4c9e228bf71ed551869433e
---
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 4d1bc0e0ea..3b5c5e25ff 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;
More information about the vlc-commits
mailing list