[vlc-commits] sdl: add dedicated overlay option and improve description

Rémi Denis-Courmont git at videolan.org
Sat Apr 30 18:13:45 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 30 19:06:20 2016 +0300| [003aeca5961bca2282d1a302475a4c924da50b4e] | committer: Rémi Denis-Courmont

sdl: add dedicated overlay option and improve description

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=003aeca5961bca2282d1a302475a4c924da50b4e
---

 modules/video_output/sdl.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/sdl.c b/modules/video_output/sdl.c
index 4206a31..44992b7 100644
--- a/modules/video_output/sdl.c
+++ b/modules/video_output/sdl.c
@@ -58,6 +58,10 @@ static void Close(vlc_object_t *);
     "Force the SDL renderer to use a specific chroma format instead of " \
     "trying to improve performances by using the most efficient one.")
 
+#define OVERLAY_TEXT N_("YUV overlay")
+#define OVERLAY_LONGTEXT N_(\
+    "Use the hardware YUV overlay of the graphic card (if available).")
+
 vlc_module_begin()
     set_shortname("SDL")
     set_category(CAT_VIDEO)
@@ -65,6 +69,7 @@ vlc_module_begin()
     set_description(N_("Simple DirectMedia Layer video output"))
     set_capability("vout display", 70)
     add_shortcut("sdl")
+    add_bool("sdl-overlay", true, OVERLAY_TEXT, OVERLAY_LONGTEXT, false)
     add_string("sdl-chroma", NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true)
     add_obsolete_string("sdl-video-driver") /* obsolete since 1.1.0 */
     set_callbacks(Open, Close)
@@ -217,7 +222,7 @@ static int Open(vlc_object_t *object)
 
     /* Try to open an overlay if requested */
     sys->overlay = NULL;
-    const bool is_overlay = var_InheritBool(vd, "overlay");
+    const bool is_overlay = var_InheritBool(vd, "sdl-overlay");
     if (is_overlay) {
         static const struct
         {



More information about the vlc-commits mailing list