[vlc-devel] [PATCH 12/17] vulkan: display: remove default vulkan name

Romain Vimont rom1v at videolabs.io
Wed Apr 14 09:55:12 UTC 2021


On Mon, Apr 12, 2021 at 03:32:28PM +0200, Alexandre Janniaux wrote:
> ---
>  modules/video_output/vulkan/display.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/video_output/vulkan/display.c b/modules/video_output/vulkan/display.c
> index dc6cb2726c..4aaaad5f29 100644
> --- a/modules/video_output/vulkan/display.c
> +++ b/modules/video_output/vulkan/display.c
> @@ -486,7 +486,7 @@ vlc_module_begin ()
>      set_subcategory (SUBCAT_VIDEO_VOUT)
>      set_callback_display(Open, 0)
>      add_shortcut ("vulkan", "vk")
> -    add_module ("vk", "vulkan", NULL, VK_TEXT, PROVIDER_LONGTEXT)
> +    add_module ("vk", "", NULL, VK_TEXT, PROVIDER_LONGTEXT)

It seems it's the only module in VLC with an empty string for
capabilities:

    $ rg 'add_module\s*\([^,]*,\s*""'
    modules/video_output/vulkan/display.c
    489:    add_module ("vk", "", NULL, VK_TEXT, PROVIDER_LONGTEXT)
            ^^^^^^^^^^^^^^^^^^^^

Isn't it odd?

>  
>      set_section("Scaling", NULL)
>      add_integer("upscaler-preset", SCALE_BUILTIN,
> -- 
> 2.31.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list