fixes Bug 171 (cherry picked from commit f264d336 ) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>