[vlc-devel] Detecting fullscreen under X on linux? (for MMAL vout)
Thomas Guillem
thomas at gllm.fr
Thu Jul 12 13:01:31 CEST 2018
Hello,
On Thu, Jul 12, 2018, at 12:51, John Cox wrote:
> Hi All
>
> I'm (still) working on the MMAL modules in VLC. The mmal vout module is
> only really useful for fullscreen work or cases where there is no other
> output method. That said it is a much more efficient method of getting
> pictures onto the screen than going via X and on a Pi that is important,
> so it is definitely worth using if you want fullscreen output whether
> launched from X or not.
>
> As it stands, opening the module is gated by vout_display_IsWindowed(vd)
This function will return true if there is an X "vout window" module handling the "vout display" module (yours).
X "vout window" modules can be QT or modules/video_output/xcb/window.c.
You need to run VLC with --window dummy to have vout_display_IsWindowed returning false.
But this is not really what you want. You would like to open/close your module when the fullscreen state changes, right ?
> which always (at least as far as I've been able to detect) returns true
> when launched from X no matter whether or not there are fullscreen
> requests on the command line. There are various fullscreen events and
> cfg fields but they seem to be ifdefed out for everything except Windows
> & OS2. Given that, what would be the approved method of detecting a
> fullscreen request so output can be routed via the mmal vout rather than
> the X vout?
>
> Many thanks
>
> John Cox
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list