Fix a bug when videowidget provides bogus width

Thanks to Reimar Imhof for the patch.