Aspect ratio changes don't work properly in Mozilla plugin on Linux
When changing the aspect ratio in the Mozilla plugin on Linux, the picture is not placed properly to fit within the plugin window. The picture is instead stretched to the height of the plugin window, with whatever width yields the proper aspect ratio. Since the plugin window stays the same size, only part of the video is visible.
Investigation has revealed that VoutDisplayFitWindow is being called, which asks the vout (xcb/xvideo.c) to resize itself larger than the plugin window. The vout_window (xcb/window.c) does not object, and so the resize succeeds. The vout should reject this request, thus forcing the video to be resized within the current window.
One possible solution to this problem might be to check the size of the window's parent, and refuse to resize larger than the parent. I'm not 100% sure this would work for the application. A simpler solution is for the vout_window to remember if it's embedded (it can know if it was started via Open or EmOpen) and reject resize requests when embedded.