Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ab0080f6
Commit
ab0080f6
authored
Jan 02, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CDDB: add more debug to find the potential issues
Ref #4370
parent
a4271ec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/access/cdda.c
modules/access/cdda.c
+4
-0
No files found.
modules/access/cdda.c
View file @
ab0080f6
...
@@ -397,6 +397,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
...
@@ -397,6 +397,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
cddb_disc_t
*
p_disc
=
GetCDDBInfo
(
p_access
,
i_titles
,
p_sys
->
p_sectors
);
cddb_disc_t
*
p_disc
=
GetCDDBInfo
(
p_access
,
i_titles
,
p_sys
->
p_sectors
);
if
(
p_disc
)
if
(
p_disc
)
{
{
msg_Dbg
(
p_access
,
"Disc ID: %u"
,
cddb_disc_get_discid
(
p_disc
)
);
psz_album
=
cddb_disc_get_title
(
p_disc
);
psz_album
=
cddb_disc_get_title
(
p_disc
);
psz_genre
=
cddb_disc_get_genre
(
p_disc
);
psz_genre
=
cddb_disc_get_genre
(
p_disc
);
...
@@ -672,8 +673,11 @@ static cddb_disc_t *GetCDDBInfo( access_t *p_access, int i_titles, int *p_sector
...
@@ -672,8 +673,11 @@ static cddb_disc_t *GetCDDBInfo( access_t *p_access, int i_titles, int *p_sector
const
int64_t
i_size
=
(
p_sectors
[
i
+
1
]
-
p_sectors
[
i
]
)
*
const
int64_t
i_size
=
(
p_sectors
[
i
+
1
]
-
p_sectors
[
i
]
)
*
(
int64_t
)
CDDA_DATA_SIZE
;
(
int64_t
)
CDDA_DATA_SIZE
;
i_length
+=
INT64_C
(
1000000
)
*
i_size
/
44100
/
4
;
i_length
+=
INT64_C
(
1000000
)
*
i_size
/
44100
/
4
;
msg_Dbg
(
p_access
,
"Track %i offset: %i"
,
i
,
p_sectors
[
i
]
+
150
);
}
}
msg_Dbg
(
p_access
,
"Total length: %i"
,
i_length
/
1000000
);
cddb_disc_set_length
(
p_disc
,
(
int
)(
i_length
/
1000000
)
);
cddb_disc_set_length
(
p_disc
,
(
int
)(
i_length
/
1000000
)
);
if
(
!
cddb_disc_calc_discid
(
p_disc
)
)
if
(
!
cddb_disc_calc_discid
(
p_disc
)
)
...
...
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