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
c569f537
Commit
c569f537
authored
Dec 13, 2004
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mrl info to playlist item.
parent
51ec22f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/access/cdda/info.c
modules/access/cdda/info.c
+6
-3
No files found.
modules/access/cdda/info.c
View file @
c569f537
...
...
@@ -797,7 +797,6 @@ CDDACreatePlaylistItem( const access_t *p_access, cdda_data_t *p_cdda,
psz_mrl
,
psz_title
,
(
long
int
)
i_mduration
/
1000000
);
p_child
=
playlist_ItemNew
(
p_playlist
,
psz_mrl
,
psz_title
);
p_child
->
input
.
b_fixed_name
=
VLC_TRUE
;
p_child
->
input
.
i_duration
=
i_mduration
;
if
(
!
p_child
)
return
NULL
;
...
...
@@ -959,11 +958,13 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
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
=
strdup
(
psz_mrl
);
p_item
->
input
.
i_duration
=
i_track_frames
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
);
}
else
{
input_title_t
*
t
;
playlist_ItemToNode
(
p_playlist
,
p_item
);
for
(
i
=
0
;
i
<
p_cdda
->
i_tracks
;
i
++
)
{
...
...
@@ -973,7 +974,7 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
cdio_get_track_lsn
(
p_cdda
->
p_cdio
,
i_track
+
1
)
-
cdio_get_track_lsn
(
p_cdda
->
p_cdio
,
i_track
);
input_title_t
*
t
=
p_cdda
->
p_title
[
i
]
=
vlc_input_title_New
();
t
=
p_cdda
->
p_title
[
i
]
=
vlc_input_title_New
();
asprintf
(
&
t
->
psz_name
,
_
(
"Track %i"
),
i_track
);
t
->
i_size
=
i_track_frames
*
(
int64_t
)
CDIO_CD_FRAMESIZE_RAW
;
...
...
@@ -986,13 +987,15 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
psz_mrl_max
)
;
CDDAAddMetaToItem
(
p_access
,
p_cdda
,
p_child
,
i_track
,
VLC_TRUE
);
}
p_cdda
->
i_titles
=
p_cdda
->
i_tracks
;
/* should be +1 */
p_cdda
->
i_titles
=
p_cdda
->
i_tracks
;
p_access
->
info
.
i_size
=
cdio_get_track_lba
(
p_cdda
->
p_cdio
,
CDIO_CDROM_LEADOUT_TRACK
)
*
(
int64_t
)
CDIO_CD_FRAMESIZE_RAW
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SIZE
;
p_item
->
input
.
i_duration
=
p_access
->
info
.
i_size
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
)
;
p_item
->
input
.
psz_uri
=
strdup
(
psz_mrl
);
}
if
(
b_play
)
...
...
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