Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
dd2aecae
Commit
dd2aecae
authored
Apr 23, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give a fine name when playing audio CD
parent
1c80c50c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
modules/access/cdda.c
modules/access/cdda.c
+16
-2
No files found.
modules/access/cdda.c
View file @
dd2aecae
...
...
@@ -189,6 +189,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
waveheader
.
DataChunkID
=
VLC_FOURCC
(
'd'
,
'a'
,
't'
,
'a'
);
p_sys
->
waveheader
.
DataLength
=
0
;
/* we just don't know */
p_access
->
info
.
i_update
|=
INPUT_UPDATE_META
;
/* PTS delay */
var_Create
(
p_access
,
"cdda-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
return
VLC_SUCCESS
;
...
...
@@ -314,6 +316,8 @@ static int Control( access_t *p_access, int i_query, va_list args )
int64_t
*
pi_64
;
input_title_t
***
ppp_title
;
int
i
;
char
*
psz_title
;
vlc_meta_t
**
pp_meta
;
switch
(
i_query
)
{
...
...
@@ -344,7 +348,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_TITLE_INFO
:
ppp_title
=
(
input_title_t
***
)
va_arg
(
args
,
input_title_t
***
);
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
((
int
*
)
va_arg
(
args
,
int
*
))
=
1
;
/* Title offset */
*
((
int
*
)
va_arg
(
args
,
int
*
))
=
1
;
/* Title offset */
/* Duplicate title infos */
*
pi_int
=
p_sys
->
i_titles
;
...
...
@@ -361,7 +365,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
{
/* Update info */
p_access
->
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SIZE
;
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SIZE
|
INPUT_UPDATE_META
;
p_access
->
info
.
i_title
=
i
;
p_access
->
info
.
i_size
=
p_sys
->
title
[
i
]
->
i_size
;
p_access
->
info
.
i_pos
=
0
;
...
...
@@ -371,6 +375,16 @@ static int Control( access_t *p_access, int i_query, va_list args )
}
break
;
case
ACCESS_GET_META
:
psz_title
=
malloc
(
strlen
(
_
(
"Audio CD - Track "
)
)
+
5
);
snprintf
(
psz_title
,
100
,
_
(
"Audio CD - Track %i"
),
p_access
->
info
.
i_title
+
1
);
pp_meta
=
(
vlc_meta_t
**
)
va_arg
(
args
,
vlc_meta_t
**
);
*
pp_meta
=
vlc_meta_New
();
vlc_meta_Add
(
*
pp_meta
,
VLC_META_TITLE
,
psz_title
);
free
(
psz_title
);
break
;
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
return
VLC_EGENERIC
;
...
...
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