mpv/video/decode
wm4 c4b08a9a11 video: remove fullscreen flags chaos
There was a MPOpts fullscreen field, a mp_vo_opts.fs field, and
VOFLAG_FULLSCREEN. Remove all these and introduce a
mp_vo_opts.fullscreen flag instead.

When VOs receive VOCTRL_FULLSCREEN, they are supposed to set the
current fullscreen mode to the state in mp_vo_opts.fullscreen. They
also should do this implicitly on config().

VOs which are capable of doing so can update the mp_vo_opts.fullscreen
if the actual fullscreen mode changes (e.g. if the user uses the
window manager controls). If fullscreen mode switching fails, they
can also set mp_vo_opts.fullscreen to the actual state.

Note that the X11 backend does almost none of this, and it has a
private fs flag to store the fullscreen flag, instead of getting it
from the WM. (Possibly because it has to deal with broken WMs.)

The fullscreen option has to be checked on config() to deal with
the -fs option, especially with something like:

   mpv --fs file1.mkv --{ --no-fs file2.mkv --}

(It should start in fullscreen mode, but go to windowed mode when
playing file2.mkv.)

Wayland changes by: Alexander Preisinger <alexander.preisinger@gmail.com>
Cocoa changes by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
2013-07-18 14:07:21 +02:00
..
dec_video.c video: redo how colorspaces are handled 2013-07-16 23:22:55 +02:00
dec_video.h video: redo how colorspaces are handled 2013-07-16 23:22:55 +02:00
lavc.h video: add a new method to configure filters and VOs 2013-06-28 20:34:46 +02:00
lavc_dr1.c Fix build on Libav stable (dammit) 2013-07-15 03:24:12 +02:00
vd.c video: remove fullscreen flags chaos 2013-07-18 14:07:21 +02:00
vd.h vd: add VDCTRL_GET_PARAMS 2013-07-15 01:49:26 +02:00
vd_lavc.c vd: add VDCTRL_GET_PARAMS 2013-07-15 01:49:26 +02:00