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