summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-12 22:30:45 +0200
committerwm4 <wm4@nowhere>2015-05-12 22:30:45 +0200
commit434343d634177f4ca1d245d22107b905fbec0b74 (patch)
treeec54f03990c2354dff11a618ba47be60b0ba994f /video/fmt-conversion.c
parent6b7155c05bafa2e3bdf4c4aa0f6372745dc59a1d (diff)
downloadmpv-434343d634177f4ca1d245d22107b905fbec0b74.tar.bz2
mpv-434343d634177f4ca1d245d22107b905fbec0b74.tar.xz
vo: use pthread_cond_timedwait() for video timing
Will be used to make video waiting interruptible with Cocoa (see the following commit). One worry was that this could cause hangs if the system clock jumps backwards. Normally we don't support such behavior, because it's almost impossible to handle it reasonably. E.g. we would have to change the default clock type for condition variables, which in turn would require a custom function for creating condition variables, or so. If the OS even supports different clocks. But it turns out that this is no issue, because other events seem to wakeup the wait call anyway, and mpv internal absolute times use a monotonic clock.
Diffstat (limited to 'video/fmt-conversion.c')
0 files changed, 0 insertions, 0 deletions