[vlc-devel] [PATCH 4/8] mmal: codec: provide the needed picture pool size to the decoder owner
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jul 28 11:08:37 CEST 2020
Since we use decoder_NewPicture() and then set the picture context.
---
modules/hw/mmal/codec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index d6cf0a6f8d1..bc9a71fc64e 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -283,7 +283,7 @@ static void fill_output_port(decoder_t *dec)
{
decoder_sys_t *sys = dec->p_sys;
- if (decoder_UpdateVideoOutput(dec, sys->vctx, 0) != 0)
+ if (decoder_UpdateVideoOutput(dec, sys->vctx, NUM_DECODER_BUFFER_HEADERS) != 0)
{
// If we have a new format don't bother stuffing the buffer
// We should get a reset RSN
@@ -371,7 +371,7 @@ apply_fmt:
// Tell the rest of the world we have changed format
vlc_mutex_lock(&sys->pic_lock);
- ret = decoder_UpdateVideoOutput(dec, sys->vctx, 0);
+ ret = decoder_UpdateVideoOutput(dec, sys->vctx, NUM_DECODER_BUFFER_HEADERS);
vlc_mutex_unlock(&sys->pic_lock);
return ret;
--
2.26.2
More information about the vlc-devel
mailing list