Prevent black lines from appearing on the sides of the video when resizing.

This happened mostly when resizing manually or when using auto-fit zoom.

Fixes #2423.
Merge remote-tracking branch 'mpc/master'
Merge branch 'master' into private
Merge branch 'master' into private