[vlc-devel] [PATCH 7/9] mmal/vout: Fix build

Julian Scheel julian at jusst.de
Thu Oct 19 11:23:04 CEST 2017

Make the background switch independent from video size, as the
is_fullscreen was removed from vout_display_cfg. Instead a cmdline
options is introduced to enable or disable the background layer.

Signed-off-by: Julian Scheel <julian at jusst.de>
 modules/hw/mmal/vout.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index 782ee48c4f..c577c0e019 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -50,6 +50,11 @@
 #define MMAL_LAYER_TEXT N_("VideoCore layer where the video is displayed.")
 #define MMAL_LAYER_LONGTEXT N_("VideoCore layer where the video is displayed. Subpictures are displayed directly above and a black background directly below.")
+#define MMAL_BLANK_BACKGROUND_NAME "mmal-blank-background"
+#define MMAL_BLANK_BACKGROUND_TEXT N_("Blank screen below video.")
+#define MMAL_BLANK_BACKGROUND_LONGTEXT N_("Render blank screen below video. " \
+        "Increases VideoCore load.")
 #define MMAL_ADJUST_REFRESHRATE_NAME "mmal-adjust-refreshrate"
 #define MMAL_ADJUST_REFRESHRATE_TEXT N_("Adjust HDMI refresh rate to the video.")
 #define MMAL_ADJUST_REFRESHRATE_LONGTEXT N_("Adjust HDMI refresh rate to the video.")
@@ -426,7 +431,7 @@ static int configure_display(vout_display_t *vd, const vout_display_cfg_t *cfg,
         return -EINVAL;
-    show_background(vd, cfg->is_fullscreen);
+    show_background(vd, var_InheritBool(vd, MMAL_BLANK_BACKGROUND_NAME));
     sys->adjust_refresh_rate = var_InheritBool(vd, MMAL_ADJUST_REFRESHRATE_NAME);
     sys->native_interlaced = var_InheritBool(vd, MMAL_NATIVE_INTERLACED);
     if (sys->adjust_refresh_rate) {

More information about the vlc-devel mailing list