The temporary QByteArray is deallocated already at the end of the statement in C++, instead of the end of the scope (like in C).
This is pretty dumb and extremely basic. The main purpose is demonstrating how to integrate mpv into the Qt GUI thread.