tag: id3v2: fix parsing of UTF-16 text on systems with crippled iconv
authorTim-Philipp Müller <tim@centricular.com>
Mon, 25 May 2015 21:37:56 +0000 (22:37 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 25 May 2015 21:40:17 +0000 (22:40 +0100)
commitea5d912b9fed5a596d11dbd5774623d1d839437c
tree24a3ad960edf834a0cfcaa4ade87df3f96a0d8a8
parenta5f6c4583cc48a53b90a74900985de4940390d65
tag: id3v2: fix parsing of UTF-16 text on systems with crippled iconv

Use g_utf16_to_utf8() instead of the more generic g_convert(), so
that we can extract text in UTF-16 format even on embedded systems
with crippled iconv support.

This code path is exercised by the id3demux test_unsync_v23
check in gst-plugins-good.

https://bugzilla.gnome.org/show_bug.cgi?id=741144
gst-libs/gst/tag/id3v2frames.c