]> git.sesse.net Git - vlc/commitdiff
Set a default user agent on windows vlc too.
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 3 Feb 2012 17:24:54 +0000 (18:24 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 3 Feb 2012 17:24:54 +0000 (18:24 +0100)
This  complements  commit dadb0622e6244456f7b5576ab2f9aa0c6582c68  which
moved  responsability  for   setting  the  user  agent   to  the  client
application.

bin/winvlc.c

index d944ae279511e4ca7f21dac82e0619b78add93fc..42a3d56dad2d67655006427913eac45cf8e7d968 100644 (file)
@@ -206,6 +206,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
     vlc = libvlc_new (argc, (const char **)argv);
     if (vlc != NULL)
     {
+        libvlc_set_user_agent (vlc, "VLC media player", "VLC/"PACKAGE_VERSION);
         libvlc_add_intf (vlc, "globalhotkeys,none");
         libvlc_add_intf (vlc, NULL);
         libvlc_playlist_play (vlc, -1, 0, NULL);