Fix corrupted metadata on manual track change on hwcodec.