[vlc-commits] Allow vorbis.h to be included in C++

Jean-Baptiste Kempf git at videolan.org
Tue Apr 10 22:58:52 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 10 22:46:57 2012 +0200| [80b1c2b41a50688d6a97f9530d7553e5c6eda6be] | committer: Jean-Baptiste Kempf

Allow vorbis.h to be included in C++

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80b1c2b41a50688d6a97f9530d7553e5c6eda6be
---

 modules/demux/vorbis.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/vorbis.h b/modules/demux/vorbis.h
index e3c07bd..2de6bc0 100644
--- a/modules/demux/vorbis.h
+++ b/modules/demux/vorbis.h
@@ -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, '=' ) )



More information about the vlc-commits mailing list