[vlc-devel] [PATCH 2/4] vout: Use "fullscreen-monitor" setting

Gabriel Luci github at luci.ca
Sun Oct 13 05:58:29 CEST 2019


Pass the setting as the id parameter to vout_ChangeFullscreen()
---
 src/video_output/vout_intf.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index ce50616fc9..9a0120fb4d 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -566,7 +566,11 @@ static int FullscreenCallback( vlc_object_t *p_this, char const *psz_cmd,
     (void)psz_cmd; (void) oldval; (void)p_data;
 
     if( newval.b_bool )
-        vout_ChangeFullscreen(p_vout, NULL);
+    {
+        char *psz_fullscreen_monitor = var_InheritString( p_vout, "fullscreen-monitor" );
+        vout_ChangeFullscreen(p_vout, psz_fullscreen_monitor);
+        free( psz_fullscreen_monitor );
+    }
     else
         vout_ChangeWindowed(p_vout);
     return VLC_SUCCESS;
-- 
2.11.0



More information about the vlc-devel mailing list