Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5ede35cb
Commit
5ede35cb
authored
Feb 01, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved CDDB information support in cdda.c
parent
2a62ce12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
modules/access/cdda.c
modules/access/cdda.c
+20
-0
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+1
-1
No files found.
modules/access/cdda.c
View file @
5ede35cb
...
...
@@ -457,8 +457,28 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
if
(
psz_artist
)
input_item_SetArtist
(
p_input_item
,
psz_artist
);
}
const
char
*
psz_album
=
cddb_disc_get_title
(
p_sys
->
p_disc
);
if
(
psz_album
&&
*
psz_album
)
input_item_SetAlbum
(
p_input_item
,
psz_album
);
const
unsigned
i_year
=
cddb_disc_get_year
(
p_sys
->
p_disc
);
if
(
i_year
>
0
)
{
char
psz_date
[
4
+
1
];
snprintf
(
psz_date
,
sizeof
(
psz_date
),
"%u"
,
i_year
);
input_item_SetDate
(
p_input_item
,
psz_date
);
}
const
char
*
psz_genre
=
cddb_disc_get_genre
(
p_sys
->
p_disc
);
if
(
psz_genre
&&
*
psz_genre
)
input_item_SetGenre
(
p_input_item
,
psz_genre
);
}
#endif
char
psz_num
[
3
+
1
];
snprintf
(
psz_num
,
sizeof
(
psz_num
),
"%d"
,
1
+
i
);
input_item_SetTrackNum
(
p_input_item
,
psz_num
);
input_item_AddSubItem
(
p_current
,
p_input_item
);
vlc_gc_decref
(
p_input_item
);
free
(
psz_uri
);
free
(
psz_opt
);
free
(
psz_name
);
...
...
modules/meta_engine/taglib.cpp
View file @
5ede35cb
...
...
@@ -366,7 +366,7 @@ static int ReadMeta( vlc_object_t* p_this)
SET
(
comment
,
Description
);
SET
(
genre
,
Genre
);
SETINT
(
year
,
Date
);
SETINT
(
track
,
Track
n
um
);
SETINT
(
track
,
Track
N
um
);
#undef SETINT
#undef SET
...
...
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