asfmux: fix tag writing bug
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 27 Oct 2009 19:37:53 +0000 (16:37 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 27 Oct 2009 19:39:56 +0000 (16:39 -0300)
commitc3aaf2a3918dbd436f0e6b548f0b919605070608
treea810e1b7546b142bd83da8fcc30edf90f9a757bb
parent7ca8034c51f36251b36ad1aabf8ed3a7b35219b4
asfmux: fix tag writing bug

g_convert seems to add a single null terminating byte to
the end of the string, even when the output is UTF16, we
force the second 0 byte when copying to the output buffer.
This issue was causing random crashes because it was
assumed that the string resulting from g_convert had
2 extra bytes, but it has only one.
gst/asfmux/gstasfmux.c