[gst-cvs] gst-plugins-good: id3demux: pass the right size value for size of all frames to the parser

Tim Mueller tpm at kemper.freedesktop.org
Thu Apr 23 17:35:37 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: 19117a39fe32d19cdab89f07aefe9b0ffcff2010
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=19117a39fe32d19cdab89f07aefe9b0ffcff2010

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Fri Apr 24 01:01:53 2009 +0100

id3demux: pass the right size value for size of all frames to the parser

Frame data size is tag size adjusted for size of the tag header and
footer, not tag size including header and footer.

---

 gst/id3demux/id3tags.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/id3demux/id3tags.c b/gst/id3demux/id3tags.c
index 0a7a3df..f2e0634 100644
--- a/gst/id3demux/id3tags.c
+++ b/gst/id3demux/id3tags.c
@@ -159,7 +159,7 @@ id3demux_read_id3v2_tag (GstBuffer * buffer, guint * id3v2_size,
   else
     work.hdr.frame_data_size = read_size - ID3V2_HDR_SIZE;
 
-  result = id3demux_id3v2_frames_to_tag_list (&work, read_size);
+  result = id3demux_id3v2_frames_to_tag_list (&work, work.hdr.frame_data_size);
 
   *tags = work.tags;
 





More information about the Gstreamer-commits mailing list