[vlc-devel] [PATCH 5/6] video_output/mmal: Request additional filter pictures
Julian Scheel
julian at jusst.de
Thu Jun 19 11:22:20 CEST 2014
To be able to use mmal based video filters (image_fx) in opaque mode we need
to provide them at least 20 pictures for output. So request some additional
pictures which will be part of the private_pool used by the image_fx module.
Signed-off-by: Julian Scheel <julian at jusst.de>
---
modules/video_output/mmal.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/video_output/mmal.c b/modules/video_output/mmal.c
index d0a47e9..7cf8447 100644
--- a/modules/video_output/mmal.c
+++ b/modules/video_output/mmal.c
@@ -314,6 +314,13 @@ static int Open(vlc_object_t *object)
sys->dmx_handle = vc_dispmanx_display_open(0);
vd->info.subpicture_chromas = subpicture_chromas;
+ /* Acquire a bigger pool for filter pictures, this is required as mmal
+ * components need at least 20 output buffers when running in opaque mode
+ */
+ if (sys->opaque) {
+ vd->info.extra_video_filter_pictures = 22;
+ }
+
out:
if (ret != VLC_SUCCESS)
Close(object);
--
2.0.0
More information about the vlc-devel
mailing list