Commit 82513bf1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

goom: simplify use of vout_GetPicture()

parent ee9f587b
......@@ -327,17 +327,9 @@ static void *Thread( void *p_thread_data )
plane = goom_update( p_plugin_info, p_data, 0, 0.0,
NULL, NULL );
while( !( p_pic = vout_GetPicture( p_thread->p_vout ) ) )
{
vlc_mutex_lock( &p_thread->lock );
bool b_exit = p_thread->b_exit;
vlc_mutex_unlock( &p_thread->lock );
if( b_exit )
break;
msleep( VOUT_OUTMEM_SLEEP );
}
if( p_pic == NULL ) break;
p_pic = vout_GetPicture( p_thread->p_vout );
if( unlikely(p_pic == NULL) )
continue;
memcpy( p_pic->p[0].p_pixels, plane, p_thread->i_width * p_thread->i_height * 4 );
......
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