[vlc-devel] [PATCH 4/6] mosaic: remove redundant decoder picture allocation
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jun 25 13:53:15 CEST 2019
The core can do it by default.
---
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;
--
2.17.1
More information about the vlc-devel
mailing list