replacing instead of accumulating of tags in taglist (fixes possible buffer overflow...
authorFraxinas <andreas.frisch@multimedia-labs.de>
Wed, 20 May 2009 09:22:30 +0000 (11:22 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Wed, 20 May 2009 09:22:30 +0000 (11:22 +0200)
lib/service/servicemp3.cpp

index b179da8426978372e0e7409518d7b1fde03ea459..73a12430ad01ce654bd5c46cb3d3890cb1eef1d1 100644 (file)
@@ -1044,7 +1044,7 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg)
                        GstTagList *tags, *result;
                        gst_message_parse_tag(msg, &tags);
        
                        GstTagList *tags, *result;
                        gst_message_parse_tag(msg, &tags);
        
-                       result = gst_tag_list_merge(m_stream_tags, tags, GST_TAG_MERGE_PREPEND);
+                       result = gst_tag_list_merge(m_stream_tags, tags, GST_TAG_MERGE_REPLACE);
                        if (result)
                        {
                                if (m_stream_tags)
                        if (result)
                        {
                                if (m_stream_tags)