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
3790497d
Commit
3790497d
authored
May 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix m3u unhandled meta
parent
58bae569
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
modules/demux/util/id3tag.c
modules/demux/util/id3tag.c
+17
-9
No files found.
modules/demux/util/id3tag.c
View file @
3790497d
...
@@ -70,6 +70,9 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
...
@@ -70,6 +70,9 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
if
(
!
p_demux
->
p_private
)
p_demux
->
p_private
=
(
void
*
)
vlc_meta_New
();
if
(
!
p_demux
->
p_private
)
p_demux
->
p_private
=
(
void
*
)
vlc_meta_New
();
#define ID_IS( a ) (!strcmp( p_frame->id, a ))
#define DESCR_IS( a) strstr( (char*)p_frame->description, a )
while
(
(
p_frame
=
id3_tag_findframe
(
p_id3_tag
,
"T"
,
i
)
)
)
while
(
(
p_frame
=
id3_tag_findframe
(
p_id3_tag
,
"T"
,
i
)
)
)
{
{
int
i_strings
=
id3_field_getnstrings
(
&
p_frame
->
fields
[
1
]
);
int
i_strings
=
id3_field_getnstrings
(
&
p_frame
->
fields
[
1
]
);
...
@@ -81,7 +84,7 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
...
@@ -81,7 +84,7 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
char
*
psz_temp
=
id3_ucs4_utf8duplicate
(
char
*
psz_temp
=
id3_ucs4_utf8duplicate
(
id3_field_getstrings
(
&
p_frame
->
fields
[
1
],
--
i_strings
)
);
id3_field_getstrings
(
&
p_frame
->
fields
[
1
],
--
i_strings
)
);
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_GENRE
)
)
if
(
ID_IS
(
ID3_FRAME_GENRE
)
)
{
{
char
*
psz_endptr
;
char
*
psz_endptr
;
int
i_genre
=
strtol
(
psz_temp
,
&
psz_endptr
,
10
);
int
i_genre
=
strtol
(
psz_temp
,
&
psz_endptr
,
10
);
...
@@ -97,34 +100,39 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
...
@@ -97,34 +100,39 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
vlc_meta_SetGenre
(
p_meta
,
psz_temp
);
vlc_meta_SetGenre
(
p_meta
,
psz_temp
);
}
}
}
}
else
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_TITLE
)
)
else
if
(
ID_IS
(
ID3_FRAME_TITLE
)
)
{
{
vlc_meta_SetTitle
(
p_meta
,
psz_temp
);
vlc_meta_SetTitle
(
p_meta
,
psz_temp
);
}
}
else
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_ARTIST
)
)
else
if
(
ID_IS
(
ID3_FRAME_ARTIST
)
)
{
{
vlc_meta_SetArtist
(
p_meta
,
psz_temp
);
vlc_meta_SetArtist
(
p_meta
,
psz_temp
);
}
}
else
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_YEAR
)
)
else
if
(
ID_IS
(
ID3_FRAME_YEAR
)
)
{
{
vlc_meta_SetDate
(
p_meta
,
psz_temp
);
vlc_meta_SetDate
(
p_meta
,
psz_temp
);
}
}
else
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_COMMENT
)
)
else
if
(
ID_IS
(
ID3_FRAME_COMMENT
)
)
{
{
vlc_meta_SetDescription
(
p_meta
,
psz_temp
);
vlc_meta_SetDescription
(
p_meta
,
psz_temp
);
}
}
else
if
(
strstr
(
(
char
*
)
p_frame
->
description
,
"Copyright"
)
)
else
if
(
DESCR_IS
(
"Copyright"
)
)
{
{
vlc_meta_SetCopyright
(
p_meta
,
psz_temp
);
vlc_meta_SetCopyright
(
p_meta
,
psz_temp
);
}
}
else
if
(
strstr
(
(
char
*
)
p_frame
->
description
,
"Publisher"
)
)
else
if
(
DESCR_IS
(
"Publisher"
)
)
{
{
vlc_meta_SetPublisher
(
p_meta
,
psz_temp
);
vlc_meta_SetPublisher
(
p_meta
,
psz_temp
);
}
}
else
else
if
(
DESCR_IS
(
"Track number/position in set"
)
)
{
vlc_meta_SetTracknum
(
p_meta
,
psz_temp
);
}
else
if
(
DESCR_IS
(
"Album/movie/show title"
)
)
{
{
msg_Err
(
p_demux
,
"Fixme: unhandled meta, %s"
,
p_frame
->
description
);
vlc_meta_SetAlbum
(
p_meta
,
psz_temp
);
}
}
else
{
/* Unhandled meta*/
}
free
(
psz_temp
);
free
(
psz_temp
);
}
}
i
++
;
i
++
;
...
...
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