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
55e3dca3
Commit
55e3dca3
authored
Feb 18, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to only specify --cdda-track to select a cd audio track.
parent
97732ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
modules/access/cdda.c
modules/access/cdda.c
+9
-10
No files found.
modules/access/cdda.c
View file @
55e3dca3
...
...
@@ -77,7 +77,7 @@ vlc_module_begin ()
add_integer
(
"cdda-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
)
add_integer
(
"cdda-track"
,
-
1
,
NULL
,
NULL
,
NULL
,
true
)
add_integer
(
"cdda-track"
,
0
,
NULL
,
NULL
,
NULL
,
true
)
change_internal
()
add_integer
(
"cdda-first-sector"
,
-
1
,
NULL
,
NULL
,
NULL
,
true
)
change_internal
()
...
...
@@ -142,7 +142,6 @@ static int Open( vlc_object_t *p_this )
access_sys_t
*
p_sys
;
vcddev_t
*
vcddev
;
char
*
psz_name
;
int
i_mrl_tracknum
=
-
1
;
int
i_ret
;
if
(
!
p_access
->
psz_path
||
!*
p_access
->
psz_path
)
...
...
@@ -178,9 +177,9 @@ static int Open( vlc_object_t *p_this )
p_sys
->
vcddev
=
vcddev
;
/* Do we play a single track ? */
p_sys
->
i_track
=
var_CreateGetInteger
(
p_access
,
"cdda-track"
);
p_sys
->
i_track
=
var_CreateGetInteger
(
p_access
,
"cdda-track"
)
-
1
;
if
(
p_sys
->
i_track
<
0
&&
i_mrl_tracknum
<=
0
)
if
(
p_sys
->
i_track
<
0
)
{
/* We only do separate items if the whole disc is requested */
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_access
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
...
...
@@ -224,17 +223,17 @@ static int Open( vlc_object_t *p_this )
/* Tracknumber in MRL */
if
(
p_sys
->
i_first_sector
<
0
||
p_sys
->
i_last_sector
<
0
)
{
int
i_titles
;
if
(
i_mrl_tracknum
<=
0
)
const
int
i_titles
=
ioctl_GetTracksMap
(
VLC_OBJECT
(
p_access
),
p_sys
->
vcddev
,
&
p_sys
->
p_sectors
);
if
(
p_sys
->
i_track
>=
i_titles
)
{
msg_Err
(
p_access
,
"
wrong sector information
"
);
msg_Err
(
p_access
,
"
invalid track number
"
);
goto
error
;
}
i_titles
=
ioctl_GetTracksMap
(
VLC_OBJECT
(
p_access
),
p_sys
->
vcddev
,
&
p_sys
->
p_sectors
)
;
p_sys
->
i_first_sector
=
p_sys
->
p_sectors
[
p_sys
->
i_track
];
p_sys
->
i_last_sector
=
p_sys
->
p_sectors
[
p_sys
->
i_track
+
1
]
;
}
p_sys
->
i_sector
=
p_sys
->
i_first_sector
;
p_access
->
info
.
i_size
=
(
p_sys
->
i_last_sector
-
p_sys
->
i_first_sector
)
*
(
int64_t
)
CDDA_DATA_SIZE
;
...
...
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