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 07656b1..984547a 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;