summaryrefslogtreecommitdiffstats
path: root/gst/id3demux/id3tags.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-01-30 23:13:05 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-01-30 23:13:05 +0000
commit1e661e8ff3b60f17b3e0b7ffd6e8c99a5e26dab5 (patch)
tree7ef194dacc32a355f35fb8b311c63f90e92d0939 /gst/id3demux/id3tags.c
parentd258c36a9fe98c0089573122673b50eb5ee8595f (diff)
gst/id3demux/: Someone should kick my butt. Remove ID3v1 tags from the end of the file.
Original commit message from CVS: * gst/id3demux/gstid3demux.c: (gst_id3demux_chain), (gst_id3demux_read_id3v1), (gst_id3demux_sink_activate), (gst_id3demux_send_tag_event): * gst/id3demux/id3tags.c: (id3demux_read_id3v1_tag): Someone should kick my butt. Remove ID3v1 tags from the end of the file. Improve error messages. Send the TAG message as soon as we complete typefinding, instead of waiting until we send the first buffer. Downstream tag event is still sent before the first buffer.
Diffstat (limited to 'gst/id3demux/id3tags.c')
-rw-r--r--gst/id3demux/id3tags.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/id3demux/id3tags.c b/gst/id3demux/id3tags.c
index 12765e61..a14eccef 100644
--- a/gst/id3demux/id3tags.c
+++ b/gst/id3demux/id3tags.c
@@ -101,6 +101,8 @@ id3demux_read_id3v1_tag (GstBuffer * buffer, guint * id3v1_size,
} else
*tags = new_tags;
+ if (id3v1_size)
+ *id3v1_size = ID3V1_TAG_SIZE;
return ID3TAGS_READ_TAG;
}