summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-15 18:38:42 +0200
committerwm4 <wm4@nowhere>2014-09-15 18:38:42 +0200
commit930c61b64c58d5b951abeb5de143c00520b89eba (patch)
tree90760be7d2952a6894886d8787ec3eb7f1133b88 /video/out/x11_common.h
parentac2047e02e766abfad2f209160fb445937e2a919 (diff)
downloadmpv-930c61b64c58d5b951abeb5de143c00520b89eba.tar.bz2
mpv-930c61b64c58d5b951abeb5de143c00520b89eba.tar.xz
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.
Diffstat (limited to 'video/out/x11_common.h')
0 files changed, 0 insertions, 0 deletions