1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00
mpv/DOCS/client_api_examples
wm4 930c61b64c DOCS/client_api_examples: qtexample: resize to video size
This is pretty imperfect, but it's just a demo.

The main purpose is clarifying how and when to get the video size.

In theory, retrieving the properties this way has a race condition:
after reading dwidth, the video could resize again. But the worst that
can happen are mismatching dwidth/dheight values, and the
MPV_EVENT_VIDEO_RECONFIG event would be immediately received again,
which would fix the mismatch. You could read the full video-out-params
property to absolutely avoid it, but it's not worth the trouble.
2014-09-15 18:38:42 +02:00
..
cocoabasic.m docs: cocoa example uses wakeup callback API 2014-08-12 23:40:58 +02:00
qtexample.cpp DOCS/client_api_examples: qtexample: resize to video size 2014-09-15 18:38:42 +02:00
qtexample.h DOCS/client_api_examples: add a Qt example 2014-07-04 02:24:49 +02:00
qtexample.pro DOCS/client_api_examples: add a Qt example 2014-07-04 02:24:49 +02:00
shared.h
simple.c client API: rename mpv_destroy() to mpv_detach_destroy() 2014-06-07 20:25:48 +02:00