]> git.sesse.net Git - vlc/commitdiff
Allow vorbis.h to be included in C++
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Apr 2012 20:46:57 +0000 (22:46 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Apr 2012 20:59:20 +0000 (22:59 +0200)
modules/demux/vorbis.h

index e3c07bd8eaf2ced02b69dcf8bdb2833425ba77b5..2de6bc0661d7cb9dfc5d1a343eecdb60384775aa 100644 (file)
@@ -172,7 +172,8 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta, const uint8_t *p_d
                 snprintf( psz_url, sizeof(psz_url), "attachment://%s", p_attachment->psz_name );
                 vlc_meta_Set( p_meta, vlc_meta_ArtworkURL, psz_url );
                 i_attach++;
-                TAB_APPEND( *i_attachments, *attachments, p_attachment );
+                TAB_APPEND_CAST( (input_attachment_t**),
+                    *i_attachments, *attachments, p_attachment );
             }
         }
         else if( strchr( psz, '=' ) )