gst-libs/gst/tag/gstvorbistag.c: Allow id_data_len == 0 (needed for vorbis comments...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 21 Aug 2006 18:34:46 +0000 (18:34 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 21 Aug 2006 18:34:46 +0000 (18:34 +0000)
commit8c7c9ad6d437620c10575458cdcda4310daa7e60
tree65af3f7264726350c51c9cba73db9085f4b447f3
parent2698f4359b64f4d8e49661bd859eba2cf52bd73b
gst-libs/gst/tag/gstvorbistag.c: Allow id_data_len == 0 (needed for vorbis comments in Speex files).

Original commit message from CVS:
* gst-libs/gst/tag/gstvorbistag.c:
(gst_tag_list_from_vorbiscomment_buffer):
Allow id_data_len == 0 (needed for vorbis comments in Speex files).
Also add some checks to make sure we don't memcmp() beyond the end of
vorbiscomment buffer if the ID to check for is larger than the buffer.
* tests/check/libs/tag.c: (GST_START_TEST):
Some more tests for gst_tag_list_from_vorbiscomment_buffer().
ChangeLog
gst-libs/gst/tag/gstvorbistag.c
tests/check/libs/tag.c