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
80afc8a7
Commit
80afc8a7
authored
Aug 15, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: fix error handling
strdup() is as (un)likely to fail as asprintf().
parent
12c11c31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+4
-1
No files found.
modules/meta_engine/taglib.cpp
View file @
80afc8a7
...
...
@@ -283,9 +283,12 @@ static void ReadMetaFromASF( ASF::Tag* tag, demux_meta_t* p_demux_meta, vlc_meta
else
{
if
(
asprintf
(
&
psz_name
,
"%i"
,
asfPicture
.
type
()
)
==
-
1
)
continue
;
psz_name
=
NULL
;
}
if
(
unlikely
(
psz_name
==
NULL
)
)
continue
;
msg_Dbg
(
p_demux_meta
,
"Found embedded art: %s (%s) is %u bytes"
,
psz_name
,
psz_mime
,
i_data
);
...
...
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