Currently, this is not used anywhere, but better have it for forward
compatibility. This is not as elegant as a dedicated libvlc function
call. But there is no other way to set a parameter before
libvlc_InternalInit() is called by libvlc_new(), short of changing the
libvlc_new() prototype (again). And that would probably be worse.
sigdelset (&set, SIGCHLD);
/* Note that FromLocale() can be used before libvlc is initialized */
- const char *argv[i_argc + 3];
+ const char *argv[i_argc + 4];
int argc = 0;
argv[argc++] = "--no-ignore-config";
+ argv[argc++] = "--user-agent=\"VLC media player\"";
#ifdef TOP_BUILDDIR
argv[argc++] = FromLocale ("--plugin-path="TOP_BUILDDIR"/modules");
#endif
DATA_PATH_LONGTEXT, true )
change_need_restart ()
+ add_string( "user-agent", "(LibVLC "VERSION")", NULL, "", "", true )
+ change_safe ()
+ change_private ()
+
set_section( N_("Performance options"), NULL )
add_obsolete_bool( "minimize-threads" )