[vlc-devel] [PATCH] Skip all id3tag in the demuxer, not just the first one.
Luc Saillard
luc.saillard at sfr.com
Mon Jul 18 10:29:19 CEST 2011
Some audio file can contains severall id3tag. Apple use it to insert a
jpeg in an audio only stream to display an image. So just iterate others
all id3tag, and discard them.
---
src/input/demux.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/input/demux.c b/src/input/demux.c
index 117b5ef..6b357c0 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -181,8 +181,9 @@ demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
/* ID3/APE tags will mess-up demuxer probing so we skip it here.
* ID3/APE parsers will called later on in the demuxer to access the
* skipped info. */
- if( !SkipID3Tag( p_demux ) )
- SkipAPETag( p_demux );
+ while (SkipID3Tag( p_demux ))
+ ;
+ SkipAPETag( p_demux );
p_demux->p_module =
module_need( p_demux, "demux", psz_module,
--
1.7.2.5
More information about the vlc-devel
mailing list