[vlc-devel] [PATCH] bin: Don't force --media-library

Rémi Denis-Courmont remi at remlab.net
Fri Jun 12 16:54:07 CEST 2020


Hi,

That's there because media library is disabled by default, because it's heavy and useless for LibVLC instances in third party apps.

Can't simply remove this statement, AFAICT.

Le 12 juin 2020 11:17:50 GMT+03:00, "Hugo Beauzée-Luyssen" <hugo at beauzee.fr> a écrit :
>Just use whatever the config value is, otherwise whatever the user sets
>in preference is ignored.
>---
> bin/darwinvlc.m | 1 -
> bin/vlc.c       | 1 -
> bin/winvlc.c    | 1 -
> 3 files changed, 3 deletions(-)
>
>diff --git a/bin/darwinvlc.m b/bin/darwinvlc.m
>index b405c9731f..db6f4ff1b4 100644
>--- a/bin/darwinvlc.m
>+++ b/bin/darwinvlc.m
>@@ -231,7 +231,6 @@ int main(int i_argc, const char *ppsz_argv[])
>     int argc = 0;
> 
>     argv[argc++] = "--no-ignore-config";
>-    argv[argc++] = "--media-library";
> 
>     /* Overwrite system language */
>CFPropertyListRef lang_pref =
>CFPreferencesCopyAppValue(CFSTR("language"),
>diff --git a/bin/vlc.c b/bin/vlc.c
>index 268922a617..ad710f727e 100644
>--- a/bin/vlc.c
>+++ b/bin/vlc.c
>@@ -205,7 +205,6 @@ int main(int argc, const char *argv[])
>     int count = 0;
> 
>     args[count++] = "--no-ignore-config";
>-    args[count++] = "--media-library";
> #ifdef HAVE_DBUS
>     args[count++] = "--dbus";
> #endif
>diff --git a/bin/winvlc.c b/bin/winvlc.c
>index 81fed36205..944a1e0654 100644
>--- a/bin/winvlc.c
>+++ b/bin/winvlc.c
>@@ -183,7 +183,6 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE
>hPrevInstance,
>     int j = 0;
>     char *lang = NULL;
> 
>-    argv[j++] = FromWide( L"--media-library" );
>     argv[j++] = FromWide( L"--no-ignore-config" );
>     for (int i = 1; i < argc; i++)
>     {
>-- 
>2.20.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200612/7913a756/attachment.html>


More information about the vlc-devel mailing list