rgvolume: make tag list writable before modifying it
authorTim-Philipp Müller <tim@centricular.com>
Sun, 28 Feb 2016 13:42:28 +0000 (13:42 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 28 Feb 2016 14:44:39 +0000 (14:44 +0000)
commita4d64b5caa3fac5223e58b6d791fbd6fbe44ff72
tree223bbb62328a43f56b88a4ab4007ee705301f1fe
parentbf5a72a6dded48077b182abd52b4f12a9e6392bf
rgvolume: make tag list writable before modifying it

Making the event itself writable is not enough, it won't make
the actual taglist in the event writable as well. Instead, just
make a copy of the taglist and then create a new tag event from
that if required, replacing the old one. Before we would
inadvertently modify taglists upstream elements might still
be holding on to. Add unit test for this as well.

https://bugzilla.gnome.org/show_bug.cgi?id=762793
gst/replaygain/gstrgvolume.c
tests/check/elements/rgvolume.c