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
36db7779
Commit
36db7779
authored
Aug 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdda: asprintf checks.
parent
932c5181
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/access/cdda/info.c
modules/access/cdda/info.c
+2
-2
No files found.
modules/access/cdda/info.c
View file @
36db7779
...
...
@@ -904,7 +904,7 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
input_title_t
*
t
=
p_cdda
->
p_title
[
0
]
=
//i_track-i_first_track] =
vlc_input_title_New
();
if
(
asprintf
(
&
t
->
psz_name
,
_
(
"Track %i"
),
i_track
)
==
-
1
)
if
(
asprintf
(
&
t
->
psz_name
,
_
(
"Track %i"
),
i_track
)
==
-
1
)
t
->
psz_name
=
NULL
;
t
->
i_size
=
i_track_frames
*
(
int64_t
)
CDIO_CD_FRAMESIZE_RAW
;
t
->
i_length
=
INT64_C
(
1000000
)
*
t
->
i_size
/
CDDA_FREQUENCY_SAMPLE
/
4
;
...
...
@@ -936,7 +936,7 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
t
=
p_cdda
->
p_title
[
i
]
=
vlc_input_title_New
();
if
(
asprintf
(
&
t
->
psz_name
,
_
(
"Track %i"
),
i_track
)
)
if
(
asprintf
(
&
t
->
psz_name
,
_
(
"Track %i"
),
i_track
)
==
-
1
)
t
->
psz_name
=
NULL
;
t
->
i_size
=
i_track_frames
*
(
int64_t
)
CDIO_CD_FRAMESIZE_RAW
;
...
...
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