pub(crate) fn enable_linux_hardware_video_decoding()Expand description
Configure GStreamer (the media backend behind WebKitGTK’s HTML5 <video>
element on Linux) to prefer hardware-accelerated VAAPI decoding when the
host provides it, falling back to software decoding otherwise.
All variables are only set if the user has not already exported them, so an
explicit override (e.g. forcing software decode for debugging) is respected.
They must be applied before WebKitGTK builds its GStreamer pipeline, hence the
call at the very top of run().