]> git.sesse.net Git - vlc/commitdiff
core vout: Fix snapshots
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 4 Jun 2009 21:10:08 +0000 (23:10 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 4 Jun 2009 21:11:52 +0000 (23:11 +0200)
vlc_cond_timedwait() for the snapshots was using the wrong timevalue.
Thx to fenrir for helping me chase this one. Fixes #2819

src/video_output/vout_intf.c

index 07656b1c42bd80bc1f040a61d31fa4a030eeb837..984547a6412da06abd2ee1071825a6867a5e2719 100644 (file)
@@ -700,7 +700,7 @@ int vout_GetSnapshot( vout_thread_t *p_vout,
            mdate() < i_deadline )
     {
         vlc_cond_timedwait( &p_sys->snapshot.wait, &p_sys->snapshot.lock,
-                            i_timeout );
+                            i_deadline );
     }
 
     picture_t *p_picture = p_sys->snapshot.p_picture;