Fix some issues in VideoDevice::setSize(...)
Fix some issues in VideoDevice::setSize(...)

- fix image buffer size calculation
- fix handling of image width and hight values
- fix function exit paths

CCBUG: 261845

svn path=/trunk/KDE/kdenetwork/kopete/; revision=1211705

Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete