Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5080dbf5
Commit
5080dbf5
authored
Apr 27, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access/http: update Icy metadata on change (close #9332)
parent
58e4b459
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
modules/access/http.c
modules/access/http.c
+25
-2
No files found.
modules/access/http.c
View file @
5080dbf5
...
...
@@ -871,9 +871,16 @@ static int ReadICYMeta( access_t *p_access )
p_sys
->
psz_icy_title
=
EnsureUTF8
(
psz_tmp
);
if
(
!
p_sys
->
psz_icy_title
)
free
(
psz_tmp
);
//p_access->info.i_update |= INPUT_UPDATE_META; FIXME
msg_Dbg
(
p_access
,
"New Title=%s"
,
p_sys
->
psz_icy_title
);
msg_Dbg
(
p_access
,
"New Icy-Title=%s"
,
p_sys
->
psz_icy_title
);
input_thread_t
*
p_input
=
access_GetParentInput
(
p_access
);
if
(
p_input
)
{
input_item_t
*
p_input_item
=
input_GetItem
(
p_access
->
p_input
);
if
(
p_input_item
)
input_item_SetMeta
(
p_input_item
,
vlc_meta_NowPlaying
,
p_sys
->
psz_icy_title
);
vlc_object_release
(
p_input
);
}
}
}
free
(
psz_meta
);
...
...
@@ -1453,6 +1460,14 @@ static int Request( access_t *p_access, uint64_t i_tell )
if
(
!
p_sys
->
psz_icy_name
)
free
(
psz_tmp
);
msg_Dbg
(
p_access
,
"Icy-Name: %s"
,
p_sys
->
psz_icy_name
);
input_thread_t
*
p_input
=
access_GetParentInput
(
p_access
);
if
(
p_input
)
{
input_item_t
*
p_input_item
=
input_GetItem
(
p_access
->
p_input
);
if
(
p_input_item
)
input_item_SetMeta
(
p_input_item
,
vlc_meta_Title
,
p_sys
->
psz_icy_name
);
vlc_object_release
(
p_input
);
}
p_sys
->
b_icecast
=
true
;
/* be on the safeside. set it here as well. */
p_sys
->
b_reconnect
=
true
;
...
...
@@ -1466,6 +1481,14 @@ static int Request( access_t *p_access, uint64_t i_tell )
if
(
!
p_sys
->
psz_icy_genre
)
free
(
psz_tmp
);
msg_Dbg
(
p_access
,
"Icy-Genre: %s"
,
p_sys
->
psz_icy_genre
);
input_thread_t
*
p_input
=
access_GetParentInput
(
p_access
);
if
(
p_input
)
{
input_item_t
*
p_input_item
=
input_GetItem
(
p_access
->
p_input
);
if
(
p_input_item
)
input_item_SetMeta
(
p_input_item
,
vlc_meta_Genre
,
p_sys
->
psz_icy_genre
);
vlc_object_release
(
p_input
);
}
}
else
if
(
!
strncasecmp
(
psz
,
"Icy-Notice"
,
10
)
)
{
...
...
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