diff options
author | wm4 <wm4@nowhere> | 2014-12-30 22:34:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-30 22:40:25 +0100 |
commit | 10f51a8c57e857ab8ed09a04237879f8bb329a0f (patch) | |
tree | 5c03034fc1d2e8e688b6dbf6c7c70b338b12c2c4 /osdep/macosx_events.m | |
parent | 50c40b6dedcaf35bd2af68a3535b023c871d1295 (diff) | |
download | mpv-10f51a8c57e857ab8ed09a04237879f8bb329a0f.tar.bz2 mpv-10f51a8c57e857ab8ed09a04237879f8bb329a0f.tar.xz |
DOCS/client_api_examples: qtquick: fix destruction
Destruction (e.g. when closing the window) was a bit broken. This commit
fixes some possible crashes, and should make lifetime management
relatively sane. (Still a bit complex, though. Maybe this code should be
moved into a tiny library.)
QtQuick runs the renderer on a separate thread. This thread is rather
loosely connected to the main thread. The loose separation is enforced
by the API, which also makes coordination of initialization and
destruction harder. Throw refcounting at the problem, which fixes it.
The refcounting wrapper introduced in the previous commit is used for
this.
Also contains some general cleanups.
Diffstat (limited to 'osdep/macosx_events.m')
0 files changed, 0 insertions, 0 deletions