Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
dadb0622
Commit
dadb0622
authored
Sep 17, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore LibVLC/VERSION at the end of the HTTP user agent
parent
e29d2836
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
bin/vlc.c
bin/vlc.c
+1
-1
modules/access/http.c
modules/access/http.c
+1
-1
src/control/core.c
src/control/core.c
+7
-2
No files found.
bin/vlc.c
View file @
dadb0622
...
...
@@ -203,7 +203,7 @@ int main( int i_argc, const char *ppsz_argv[] )
if
(
vlc
==
NULL
)
goto
out
;
libvlc_set_user_agent
(
vlc
,
"VLC media player"
,
NULL
);
libvlc_set_user_agent
(
vlc
,
"VLC media player"
,
"VLC/"
PACKAGE_VERSION
);
#if !defined (HAVE_MAEMO) && !defined __APPLE__
libvlc_add_intf
(
vlc
,
"globalhotkeys,none"
);
...
...
modules/access/http.c
View file @
dadb0622
...
...
@@ -123,7 +123,7 @@ vlc_module_begin ()
add_integer
(
"http-caching"
,
4
*
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
)
change_safe
()
add_string
(
"http-user-agent"
,
PACKAGE_NAME
"/"
PACKAGE_VERSION
,
NULL
,
add_string
(
"http-user-agent"
,
NULL
,
NULL
,
AGENT_TEXT
,
AGENT_LONGTEXT
,
true
)
change_safe
()
change_need_restart
()
...
...
src/control/core.c
View file @
dadb0622
...
...
@@ -133,10 +133,15 @@ void libvlc_set_user_agent (libvlc_instance_t *p_i,
const
char
*
name
,
const
char
*
http
)
{
libvlc_int_t
*
p_libvlc
=
p_i
->
p_libvlc_int
;
char
*
str
;
var_SetString
(
p_libvlc
,
"user-agent"
,
name
);
if
(
http
!=
NULL
)
var_SetString
(
p_libvlc
,
"http-user-agent"
,
http
);
if
((
http
!=
NULL
)
&&
(
asprintf
(
&
str
,
"%s LibVLC/"
PACKAGE_VERSION
,
http
)
!=
-
1
))
{
var_SetString
(
p_libvlc
,
"http-user-agent"
,
str
);
free
(
str
);
}
}
const
char
*
libvlc_get_version
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment