Commit 80afc8a7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

taglib: fix error handling

strdup() is as (un)likely to fail as asprintf().
parent 12c11c31
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment