]> git.sesse.net Git - vlc/commit
Almost wait-free snapshot handling in the vout thread
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 10 Mar 2009 20:44:23 +0000 (22:44 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 11 Mar 2009 19:52:59 +0000 (21:52 +0200)
commit8610a92bc466ae368ad9a078650c5397e52c90bc
treebe9a23c8deb31f573907ac18db7b34647ce93f60
parent685ac18a9a9d87646eda24a5550399fb5bc5f9fb
Almost wait-free snapshot handling in the vout thread

Using vlc_mutex_trylock(), we make sure that the video output thread
will not yield because of an incomplete snapshot request. It can still
yield in the very unlikely case that a thread is doing a snapshot
request while the video output thread finishes sorting SPUs _and_ there
already was a pending snapshot earlier.
src/video_output/video_output.c