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
caf4b943
Commit
caf4b943
authored
Dec 26, 2004
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Title hell. Seems like titles work substantially differently for
navigation versus plaback.
parent
ce5c7499
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
23 deletions
+30
-23
modules/access/cdda/cdda.c
modules/access/cdda/cdda.c
+0
-5
modules/access/cdda/info.c
modules/access/cdda/info.c
+30
-18
No files found.
modules/access/cdda/cdda.c
View file @
caf4b943
...
...
@@ -120,11 +120,6 @@ vlc_module_begin();
N_
(
"Number of blocks per CD read"
),
BLOCKS_PER_READ_LONGTEXT
,
VLC_TRUE
);
add_string
(
MODULE_STRING
"-author-format"
,
"%A - %a %C %I"
,
NULL
,
N_
(
"Format to use in playlist
\"
author
\"
field"
),
TITLE_FMT_LONGTEXT
,
VLC_TRUE
);
add_string
(
MODULE_STRING
"-title-format"
,
"Track %T. %t"
,
NULL
,
N_
(
"Format to use in playlist
\"
title
\"
field when no CDDB"
),
...
...
modules/access/cdda/info.c
View file @
caf4b943
...
...
@@ -289,7 +289,7 @@ CDDAMetaInfo( access_t *p_access, track_t i_track )
cddb_track_t
*
t
=
cddb_disc_get_track
(
p_cdda
->
cddb
.
disc
,
i_track
-
1
);
if
(
t
!=
NULL
)
{
if
(
t
->
title
!=
NULL
)
if
(
t
->
title
!=
NULL
&&
!
p_cdda
->
b_nav_mode
)
{
add_meta_val
(
VLC_META_TITLE
,
t
->
title
);
}
...
...
@@ -428,21 +428,31 @@ CDDAMetaInfo( access_t *p_access, track_t i_track )
/* Above we should have set psz_meta_title and psz_meta_artist
to CDDB or CD-Text values or the default value depending on
availablity and user preferences.
availablity and user preferences.
So now add the title and artist to VLC's meta, and the
name as shown in the status bar and playlist entry.
*/
add_meta_val
(
VLC_META_TITLE
,
psz_meta_title
);
if
(
psz_meta_artist
)
add_meta_val
(
VLC_META_ARTIST
,
psz_meta_artist
);
So now add the title and artist to VLC's meta, and the name
as shown in the status bar and playlist entry.
if
(
CDIO_INVALID_TRACK
!=
i_track
)
{
For playlist mode, the meta title is what's seen at the
bottom and in the playlist. For nav-mode playing, it is
done by input_control. I don't understand why they do
different things. In either case, we may have customized to
put in the track name.
*/
if
(
CDIO_INVALID_TRACK
!=
i_track
)
{
char
*
psz_name
=
CDDAFormatTitle
(
p_access
,
i_track
)
;
input_Control
(
p_cdda
->
p_input
,
INPUT_SET_NAME
,
psz_name
);
free
(
psz_name
);
if
(
!
p_cdda
->
b_nav_mode
)
{
add_meta_val
(
VLC_META_TITLE
,
psz_name
);
}
else
{
input_Control
(
p_cdda
->
p_input
,
INPUT_SET_NAME
,
psz_name
);
free
(
psz_name
);
}
if
(
psz_meta_artist
)
add_meta_val
(
VLC_META_ARTIST
,
psz_meta_artist
);
}
}
}
...
...
@@ -964,16 +974,18 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
t
->
i_length
=
I64C
(
1000000
)
*
t
->
i_size
/
CDDA_FREQUENCY_SAMPLE
/
4
;
if
(
p_item
)
CDDAAddMetaToItem
(
p_access
,
p_cdda
,
p_item
,
i_track
,
VLC_FALSE
);
if
(
p_item
)
{
CDDAAddMetaToItem
(
p_access
,
p_cdda
,
p_item
,
i_track
,
VLC_FALSE
);
p_item
->
input
.
i_duration
=
i_track_frames
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
);
p_item
->
input
.
psz_uri
=
CDDAFormatMRL
(
p_access
,
i_track
);
}
p_cdda
->
i_titles
=
1
;
p_access
->
info
.
i_size
=
i_track_frames
*
(
int64_t
)
CDIO_CD_FRAMESIZE_RAW
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SIZE
;
p_item
->
input
.
psz_uri
=
CDDAFormatMRL
(
p_access
,
i_track
);
p_item
->
input
.
i_duration
=
i_track_frames
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
);
}
else
{
...
...
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