Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2e4030a2
Commit
2e4030a2
authored
Nov 09, 2015
by
Jonas Lundqvist
Committed by
Jean-Baptiste Kempf
Nov 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioscrobbler: check the submission URLs after handshake
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
f016bce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+13
-0
No files found.
modules/misc/audioscrobbler.c
View file @
2e4030a2
...
@@ -617,6 +617,12 @@ static int Handshake(intf_thread_t *p_this)
...
@@ -617,6 +617,12 @@ static int Handshake(intf_thread_t *p_this)
vlc_UrlParse
(
&
p_sys
->
p_nowp_url
,
psz_url
);
vlc_UrlParse
(
&
p_sys
->
p_nowp_url
,
psz_url
);
free
(
psz_url
);
free
(
psz_url
);
if
(
p_sys
->
p_nowp_url
.
psz_host
==
NULL
||
p_sys
->
p_nowp_url
.
i_port
==
0
)
{
vlc_UrlClean
(
&
p_sys
->
p_nowp_url
);
goto
proto
;
}
p_buffer_pos
=
strstr
(
p_buffer_pos
,
"http://"
);
p_buffer_pos
=
strstr
(
p_buffer_pos
,
"http://"
);
if
(
!
p_buffer_pos
||
strlen
(
p_buffer_pos
)
==
7
)
if
(
!
p_buffer_pos
||
strlen
(
p_buffer_pos
)
==
7
)
...
@@ -631,6 +637,13 @@ static int Handshake(intf_thread_t *p_this)
...
@@ -631,6 +637,13 @@ static int Handshake(intf_thread_t *p_this)
/* parse the submission url */
/* parse the submission url */
vlc_UrlParse
(
&
p_sys
->
p_submit_url
,
psz_url
);
vlc_UrlParse
(
&
p_sys
->
p_submit_url
,
psz_url
);
free
(
psz_url
);
free
(
psz_url
);
if
(
p_sys
->
p_submit_url
.
psz_host
==
NULL
||
p_sys
->
p_submit_url
.
i_port
==
0
)
{
vlc_UrlClean
(
&
p_sys
->
p_nowp_url
);
vlc_UrlClean
(
&
p_sys
->
p_submit_url
);
goto
proto
;
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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