Video doesn't scale until manual resize (libVLC macOS)
When a video is first loaded it does not scale up or down to fit in it's display window until the window is manually resized. (Discussed in https://forum.videolan.org/viewtopic.php?f=32&t=155476)
Reproducible in the Qt official sample https://code.videolan.org/videolan/vlc-3.0/-/tree/master/doc/libvlc/QtPlayer: 1. Run sample player. 2. Open any video file. 3. If not scaled to window, drag edge of player to resize. Needed to set plugin path in player.cpp:
QByteArray ba=QString("/Applications/VLC.app/Contents/MacOS/plugins").toUtf8();
qputenv("VLC_PLUGIN_PATH",ba);
(Also reproducible in the python bindings sample https://raw.githubusercontent.com/oaubert/python-vlc/master/examples/qtvlc.py; updated to Qt5. I mainly work with the Python bindings to LibVLC with PyQt5.)
Links to a couple of examples: https://drive.google.com/file/d/1ro47tQT5-rJVj_JZxKDUvvSqabIyHfOY/view?usp=sharing https://drive.google.com/file/d/1_CnQHk4sWVVe274wHXaMPPoJ6fCl0kDA/view?usp=sharing
Video type does not seem to matter. I did not see this in earlier versions of 2.0 or 3.0, but definitely with 3.0.11.1. First appears with 3.0.7; can't comment on 4.0. Sometimes things scale properly when first loaded, but mostly not. Working with macOS 10.14 Mojave, macOS 10.15 Catalina. Qt5.13.2
MacBook Pro (13-inch Mid 2012) 2.9 GHz Dual-Core Intel Core i7 8 GB 1600 MHz DDR3
Intel HD Graphics 4000: Chipset Model: Intel HD Graphics 4000 Type: GPU Bus: Built-In VRAM (Dynamic, Max): 1536 MB Vendor: Intel Device ID: 0x0166 Revision ID: 0x0009 Metal: Supported, feature set macOS GPUFamily1 v4