Commit 9a6e6302 authored by Laurent Aimar's avatar Laurent Aimar

Removed useless date check when using vlc_cond_timedwait.

parent d527cc03
...@@ -696,11 +696,11 @@ int vout_GetSnapshot( vout_thread_t *p_vout, ...@@ -696,11 +696,11 @@ int vout_GetSnapshot( vout_thread_t *p_vout,
p_sys->snapshot.i_request++; p_sys->snapshot.i_request++;
const mtime_t i_deadline = mdate() + i_timeout; const mtime_t i_deadline = mdate() + i_timeout;
while( p_sys->snapshot.b_available && !p_sys->snapshot.p_picture && while( p_sys->snapshot.b_available && !p_sys->snapshot.p_picture )
mdate() < i_deadline )
{ {
vlc_cond_timedwait( &p_sys->snapshot.wait, &p_sys->snapshot.lock, if( vlc_cond_timedwait( &p_sys->snapshot.wait, &p_sys->snapshot.lock,
i_deadline ); i_deadline ) )
break;
} }
picture_t *p_picture = p_sys->snapshot.p_picture; picture_t *p_picture = p_sys->snapshot.p_picture;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment