Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a935b21a
Commit
a935b21a
authored
Jul 27, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed icy meta data parsing after http reconnection (close #576 and
parent
379212db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/access/http.c
modules/access/http.c
+5
-2
No files found.
modules/access/http.c
View file @
a935b21a
...
...
@@ -184,6 +184,7 @@ struct access_sys_t
int64_t
i_chunk
;
int
i_icy_meta
;
int64_t
i_icy_offset
;
char
*
psz_icy_name
;
char
*
psz_icy_genre
;
char
*
psz_icy_title
;
...
...
@@ -276,6 +277,7 @@ static int OpenWithCookies( vlc_object_t *p_this, vlc_array_t *cookies )
p_sys
->
p_tls
=
NULL
;
p_sys
->
p_vs
=
NULL
;
p_sys
->
i_icy_meta
=
0
;
p_sys
->
i_icy_offset
=
0
;
p_sys
->
psz_icy_name
=
NULL
;
p_sys
->
psz_icy_genre
=
NULL
;
p_sys
->
psz_icy_title
=
NULL
;
...
...
@@ -697,10 +699,10 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
}
if
(
p_sys
->
i_icy_meta
>
0
&&
p_access
->
info
.
i_pos
>
0
)
if
(
p_sys
->
i_icy_meta
>
0
&&
p_access
->
info
.
i_pos
-
p_sys
->
i_icy_offset
>
0
)
{
int64_t
i_next
=
p_sys
->
i_icy_meta
-
p_access
->
info
.
i_pos
%
p_sys
->
i_icy_meta
;
(
p_access
->
info
.
i_pos
-
p_sys
->
i_icy_offset
)
%
p_sys
->
i_icy_meta
;
if
(
i_next
==
p_sys
->
i_icy_meta
)
{
...
...
@@ -1005,6 +1007,7 @@ static int Connect( access_t *p_access, int64_t i_tell )
p_sys
->
b_chunked
=
false
;
p_sys
->
i_chunk
=
0
;
p_sys
->
i_icy_meta
=
0
;
p_sys
->
i_icy_offset
=
i_tell
;
p_sys
->
psz_icy_name
=
NULL
;
p_sys
->
psz_icy_genre
=
NULL
;
p_sys
->
psz_icy_title
=
NULL
;
...
...
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