[vlc-commits] transcode: remove useless callback
Rémi Denis-Courmont
git at videolan.org
Mon Jul 28 23:55:13 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 28 19:49:22 2014 +0300| [da352496d6dc42f003695d817b134fc5d617e966] | committer: Rémi Denis-Courmont
transcode: remove useless callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da352496d6dc42f003695d817b134fc5d617e966
---
modules/stream_out/transcode/video.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 60b66bb..05d9252 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -92,11 +92,6 @@ static int transcode_video_filter_allocation_init( filter_t *p_filter,
return VLC_SUCCESS;
}
-static void transcode_video_filter_allocation_clear( filter_t *p_filter )
-{
- VLC_UNUSED(p_filter);
-}
-
static void* EncoderThread( void *obj )
{
sout_stream_sys_t *p_sys = (sout_stream_sys_t*)obj;
@@ -304,8 +299,7 @@ static void transcode_video_filter_init( sout_stream_t *p_stream,
id->p_f_chain = filter_chain_New( p_stream, "video filter2",
false,
transcode_video_filter_allocation_init,
- transcode_video_filter_allocation_clear,
- p_stream->p_sys );
+ NULL, p_stream->p_sys );
filter_chain_Reset( id->p_f_chain, p_fmt_out, p_fmt_out );
/* Deinterlace */
@@ -329,10 +323,9 @@ static void transcode_video_filter_init( sout_stream_t *p_stream,
if( p_stream->p_sys->psz_vf2 )
{
id->p_uf_chain = filter_chain_New( p_stream, "video filter2",
- true,
+ true,
transcode_video_filter_allocation_init,
- transcode_video_filter_allocation_clear,
- p_stream->p_sys );
+ NULL, p_stream->p_sys );
filter_chain_Reset( id->p_uf_chain, p_fmt_out,
&id->p_encoder->fmt_in );
if( p_fmt_out->video.i_chroma != id->p_encoder->fmt_in.video.i_chroma )
More information about the vlc-commits
mailing list