With permission of Tomas Härdin applied by Rl aetey.se Signed-off-by: Michael Niedermayer <michaelni@gmx.at>