[vlc-commits] mosaic: remove redundant decoder picture allocation
Steve Lhomme
git at videolan.org
Wed Jun 26 07:24:19 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 25 09:09:51 2019 +0200| [36cd4b4e56a26f669b2c8d854376e33eac705396] | committer: Steve Lhomme
mosaic: remove redundant decoder picture allocation
The core can do it by default.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36cd4b4e56a26f669b2c8d854376e33eac705396
---
modules/stream_out/mosaic_bridge.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c
index 12b5d8d41d..d7eab648d2 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -85,7 +85,6 @@ static int Send( sout_stream_t *, void *, block_t * );
static void decoder_queue_video( decoder_t *p_dec, picture_t *p_pic );
inline static int video_update_format_decoder( decoder_t *p_dec );
-inline static picture_t *video_new_buffer_decoder( decoder_t * );
inline static picture_t *video_new_buffer_filter( filter_t * );
static void video_update_format( video_format_t *, es_format_t * );
@@ -303,7 +302,6 @@ static void *Add( sout_stream_t *p_stream, const es_format_t *p_fmt )
{
.video = {
.format_update = video_update_format_decoder,
- .buffer_new = video_new_buffer_decoder,
.queue = decoder_queue_video,
},
};
@@ -579,11 +577,6 @@ inline static int video_update_format_decoder( decoder_t *p_dec )
return 0;
}
-inline static picture_t *video_new_buffer_decoder( decoder_t *p_dec )
-{
- return picture_NewFromFormat( &p_dec->fmt_out.video );
-}
-
inline static picture_t *video_new_buffer_filter( filter_t *p_filter )
{
struct decoder_owner *p_owner = p_filter->owner.sys;
More information about the vlc-commits
mailing list