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
c19b89e2
Commit
c19b89e2
authored
Jan 18, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small simplification in cdda.
parent
91d7a800
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/access/cdda.c
modules/access/cdda.c
+3
-4
No files found.
modules/access/cdda.c
View file @
c19b89e2
...
...
@@ -436,16 +436,15 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
psz_name
=
NULL
;
/* Create playlist items */
const
mtime_t
i_duration
=
(
int64_t
)(
p_sys
->
p_sectors
[
i
+
1
]
-
p_sys
->
p_sectors
[
i
]
)
*
CDDA_DATA_SIZE
*
1000000
/
44100
/
2
/
2
;
p_input_item
=
input_item_NewWithType
(
VLC_OBJECT
(
p_access
),
psz_uri
,
psz_name
,
0
,
NULL
,
0
,
-
1
,
psz_uri
,
psz_name
,
0
,
NULL
,
0
,
i_duration
,
ITEM_TYPE_DISC
);
input_item_CopyOptions
(
p_current
,
p_input_item
);
input_item_AddOption
(
p_input_item
,
psz_first
,
VLC_INPUT_OPTION_TRUSTED
);
input_item_AddOption
(
p_input_item
,
psz_last
,
VLC_INPUT_OPTION_TRUSTED
);
input_item_AddOption
(
p_input_item
,
psz_opt
,
VLC_INPUT_OPTION_TRUSTED
);
const
mtime_t
i_duration
=
(
int64_t
)(
p_sys
->
p_sectors
[
i
+
1
]
-
p_sys
->
p_sectors
[
i
]
)
*
CDDA_DATA_SIZE
*
1000000
/
44100
/
2
/
2
;
input_item_SetDuration
(
p_input_item
,
i_duration
);
#ifdef HAVE_LIBCDDB
/* If we have CDDB info, change the name */
...
...
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