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
9b17f037
Commit
9b17f037
authored
Oct 06, 2005
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http: update meta data only on title change.
parent
7127a2d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/access/http.c
modules/access/http.c
+10
-9
No files found.
modules/access/http.c
View file @
9b17f037
...
@@ -615,17 +615,19 @@ static int ReadICYMeta( access_t *p_access )
...
@@ -615,17 +615,19 @@ static int ReadICYMeta( access_t *p_access )
if
(
psz
)
*
psz
=
'\0'
;
if
(
psz
)
*
psz
=
'\0'
;
}
}
if
(
p_sys
->
psz_icy_title
)
free
(
p_sys
->
psz_icy_title
);
if
(
!
p_sys
->
psz_icy_title
||
strcmp
(
p_sys
->
psz_icy_title
,
&
p
[
1
]
)
)
p_sys
->
psz_icy_title
=
strdup
(
&
p
[
1
]
);
{
if
(
p_sys
->
psz_icy_title
)
free
(
p_sys
->
psz_icy_title
);
p_sys
->
psz_icy_title
=
strdup
(
&
p
[
1
]
);
p_access
->
info
.
i_update
|=
INPUT_UPDATE_META
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_META
;
msg_Dbg
(
p_access
,
"New Title=%s"
,
p_sys
->
psz_icy_title
);
}
}
}
free
(
psz_meta
);
free
(
psz_meta
);
msg_Dbg
(
p_access
,
"New Title=%s"
,
p_sys
->
psz_icy_title
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -698,8 +700,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
...
@@ -698,8 +700,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_META
:
case
ACCESS_GET_META
:
pp_meta
=
(
vlc_meta_t
**
)
va_arg
(
args
,
vlc_meta_t
**
);
pp_meta
=
(
vlc_meta_t
**
)
va_arg
(
args
,
vlc_meta_t
**
);
*
pp_meta
=
vlc_meta_New
();
*
pp_meta
=
vlc_meta_New
();
msg_Dbg
(
p_access
,
"GET META %s %s %s"
,
p_sys
->
psz_icy_name
,
p_sys
->
psz_icy_genre
,
p_sys
->
psz_icy_title
);
if
(
p_sys
->
psz_icy_name
)
if
(
p_sys
->
psz_icy_name
)
vlc_meta_Add
(
*
pp_meta
,
VLC_META_TITLE
,
vlc_meta_Add
(
*
pp_meta
,
VLC_META_TITLE
,
p_sys
->
psz_icy_name
);
p_sys
->
psz_icy_name
);
...
...
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