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
0ee11d7b
Commit
0ee11d7b
authored
Oct 18, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* id3tag fills the psz_name and psz_author field of playlist_item_t
parent
61c55d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
modules/demux/util/id3tag.c
modules/demux/util/id3tag.c
+24
-1
No files found.
modules/demux/util/id3tag.c
View file @
0ee11d7b
...
...
@@ -2,7 +2,7 @@
* id3tag.c: id3 tag parser/skipper based on libid3tag
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: id3tag.c,v 1.
9 2003/06/23 16:09:13 gbazi
n Exp $
* $Id: id3tag.c,v 1.
10 2003/10/18 22:48:25 hartma
n Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
...
...
@@ -28,6 +28,7 @@
#include <string.h>
#include <vlc/vlc.h>
#include <vlc/intf.h>
#include <vlc/input.h>
#include <sys/types.h>
...
...
@@ -58,6 +59,7 @@ vlc_module_end();
*****************************************************************************/
static
void
ParseID3Tag
(
input_thread_t
*
p_input
,
u8
*
p_data
,
int
i_size
)
{
playlist_t
*
p_playlist
;
struct
id3_tag
*
p_id3_tag
;
struct
id3_frame
*
p_frame
;
input_info_category_t
*
p_category
;
...
...
@@ -68,6 +70,7 @@ static void ParseID3Tag( input_thread_t *p_input, u8 *p_data, int i_size )
p_id3_tag
=
id3_tag_parse
(
p_data
,
i_size
);
p_category
=
input_InfoCategory
(
p_input
,
"ID3"
);
i
=
0
;
while
(
(
p_frame
=
id3_tag_findframe
(
p_id3_tag
,
"T"
,
i
)
)
)
{
i_strings
=
id3_field_getnstrings
(
&
p_frame
->
fields
[
1
]
);
...
...
@@ -88,6 +91,26 @@ static void ParseID3Tag( input_thread_t *p_input, u8 *p_data, int i_size )
input_AddInfo
(
p_category
,
(
char
*
)
p_frame
->
description
,
psz_temp
);
}
}
else
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_TITLE
)
)
{
p_playlist
=
vlc_object_find
(
p_input
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
if
(
p_playlist
)
{
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
psz_name
=
strdup
(
psz_temp
);
vlc_object_release
(
p_playlist
);
}
input_AddInfo
(
p_category
,
(
char
*
)
p_frame
->
description
,
psz_temp
);
}
else
if
(
!
strcmp
(
p_frame
->
id
,
ID3_FRAME_ARTIST
)
)
{
p_playlist
=
vlc_object_find
(
p_input
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
if
(
p_playlist
)
{
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
psz_author
=
strdup
(
psz_temp
);
vlc_object_release
(
p_playlist
);
}
input_AddInfo
(
p_category
,
(
char
*
)
p_frame
->
description
,
psz_temp
);
}
else
{
input_AddInfo
(
p_category
,
(
char
*
)
p_frame
->
description
,
psz_temp
);
...
...
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