[vlc-commits] Set a default user agent on windows vlc too.
Antoine Cellerier
git at videolan.org
Sat Feb 4 15:18:59 CET 2012
vlc/vlc-2.0 | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Feb 3 18:24:54 2012 +0100| [2f6edbecbbc99a1d19b31a5f98d18bf3ec05f2f0] | committer: Jean-Baptiste Kempf
Set a default user agent on windows vlc too.
This complements commit dadb0622e6244456f7b5576ab2f9aa0c6582c68 which
moved responsability for setting the user agent to the client
application.
(cherry picked from commit a3363d01443de5b3ff8b9762692662623e70d786)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2f6edbecbbc99a1d19b31a5f98d18bf3ec05f2f0
---
bin/winvlc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 7f9d916..277277b 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -205,6 +205,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);
More information about the vlc-commits
mailing list