Commit 32ac3576 authored by Thomas Guillem's avatar Thomas Guillem

taglib: add missing vlc_input_attachment_New() error handling

parent 0a0c6e7c
...@@ -654,10 +654,13 @@ static void ReadMetaFromMP4( MP4::Tag* tag, demux_meta_t *p_demux_meta, vlc_meta ...@@ -654,10 +654,13 @@ static void ReadMetaFromMP4( MP4::Tag* tag, demux_meta_t *p_demux_meta, vlc_meta
input_attachment_t *p_attachment = input_attachment_t *p_attachment =
vlc_input_attachment_New( "cover", psz_format, "cover", vlc_input_attachment_New( "cover", psz_format, "cover",
list[0].data().data(), list[0].data().size() ); list[0].data().data(), list[0].data().size() );
TAB_APPEND_CAST( (input_attachment_t**), if( p_attachment )
p_demux_meta->i_attachments, p_demux_meta->attachments, {
p_attachment ); TAB_APPEND_CAST( (input_attachment_t**),
vlc_meta_SetArtURL( p_meta, "attachment://cover" ); p_demux_meta->i_attachments, p_demux_meta->attachments,
p_attachment );
vlc_meta_SetArtURL( p_meta, "attachment://cover" );
}
} }
} }
#endif #endif
......
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