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

Use new API too

parent a9934068
...@@ -78,13 +78,13 @@ mediacontrol_snapshot( mediacontrol_Instance *self, ...@@ -78,13 +78,13 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
var_SetString( p_vout, "snapshot-path", path ); var_SetString( p_vout, "snapshot-path", path );
var_SetString( p_vout, "snapshot-format", "png" ); var_SetString( p_vout, "snapshot-format", "png" );
vlc_mutex_lock( &p_cache->object_lock ); vlc_object_lock( p_cache );
vout_Control( p_vout, VOUT_SNAPSHOT ); vout_Control( p_vout, VOUT_SNAPSHOT );
vlc_cond_wait( &p_cache->object_wait, &p_cache->object_lock ); vlc_object_wait( p_cache );
vlc_object_release( p_vout ); vlc_object_release( p_vout );
p_snapshot = ( snapshot_t* ) p_cache->p_private; p_snapshot = ( snapshot_t* ) p_cache->p_private;
vlc_mutex_unlock( &p_cache->object_lock ); vlc_object_unlock( p_cache );
vlc_object_destroy( p_cache ); vlc_object_destroy( p_cache );
if( p_snapshot ) if( p_snapshot )
......
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