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
56a8c2a5
Commit
56a8c2a5
authored
Jan 11, 2008
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdda: correctly display Title and Artist in CDDB mode, if available
parent
5ad459b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
modules/access/cdda.c
modules/access/cdda.c
+4
-8
No files found.
modules/access/cdda.c
View file @
56a8c2a5
...
...
@@ -35,6 +35,7 @@
#include <vlc/vlc.h>
#include <vlc_input.h>
#include <vlc_access.h>
#include <vlc_meta.h>
#include <vlc_codecs.h>
/* For WAVEHEADER */
#include "vcd/cdrom.h"
...
...
@@ -468,24 +469,19 @@ static int GetTracks( access_t *p_access,
/* If we have CDDB info, change the name */
if
(
p_sys
->
p_disc
)
{
const
char
*
psz_result
;
cddb_track_t
*
t
=
cddb_disc_get_track
(
p_sys
->
p_disc
,
i
);
if
(
t
!=
NULL
)
{
if
(
cddb_track_get_title
(
t
)
!=
NULL
)
{
input_ItemAddInfo
(
p_input_item
,
_
(
VLC_META_INFO_CAT
),
_
(
VLC_META_TITLE
),
"%s"
,
cddb_track_get_title
(
t
)
);
if
(
p_input_item
->
psz_name
)
free
(
p_input_item
->
psz_name
);
p_input_item
->
psz_name
=
strdup
(
cddb_track_get_title
(
t
)
);
input_item_SetTitle
(
p_input_item
,
cddb_track_get_title
(
t
)
);
}
psz_result
=
cddb_track_get_artist
(
t
);
if
(
psz_result
)
if
(
cddb_track_get_artist
(
t
)
!=
NULL
)
{
input_ItemAddInfo
(
p_input_item
,
_
(
VLC_META_INFO_CAT
),
_
(
VLC_META_ARTIST
),
"%s"
,
psz_result
);
input_item_SetArtist
(
p_input_item
,
cddb_track_get_artist
(
t
)
);
}
}
}
...
...
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