Commit 8ff1f7b5 authored by Olivier Aubert's avatar Olivier Aubert

vout_intf: do not vlc_object_release() the cache object since it no more...

vout_intf: do not vlc_object_release() the cache object since it no more obtained through vlc_object_find
parent 89452115
...@@ -650,7 +650,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -650,7 +650,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
image_HandlerDelete( p_image ); image_HandlerDelete( p_image );
vlc_object_signal_unlocked( p_dest ); vlc_object_signal_unlocked( p_dest );
vlc_object_unlock( p_dest ); vlc_object_unlock( p_dest );
vlc_object_release( p_dest );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -663,7 +662,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -663,7 +662,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
image_HandlerDelete( p_image ); image_HandlerDelete( p_image );
vlc_object_signal_unlocked( p_dest ); vlc_object_signal_unlocked( p_dest );
vlc_object_unlock( p_dest ); vlc_object_unlock( p_dest );
vlc_object_release( p_dest );
return VLC_ENOMEM; return VLC_ENOMEM;
} }
...@@ -681,7 +679,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -681,7 +679,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
image_HandlerDelete( p_image ); image_HandlerDelete( p_image );
vlc_object_signal_unlocked( p_dest ); vlc_object_signal_unlocked( p_dest );
vlc_object_unlock( p_dest ); vlc_object_unlock( p_dest );
vlc_object_release( p_dest );
return VLC_ENOMEM; return VLC_ENOMEM;
} }
memcpy( p_snapshot->p_data, p_block->p_buffer, p_block->i_buffer ); memcpy( p_snapshot->p_data, p_block->p_buffer, p_block->i_buffer );
...@@ -693,7 +690,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -693,7 +690,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
/* Unlock the object */ /* Unlock the object */
vlc_object_signal_unlocked( p_dest ); vlc_object_signal_unlocked( p_dest );
vlc_object_unlock( p_dest ); vlc_object_unlock( p_dest );
vlc_object_release( p_dest );
image_HandlerDelete( p_image ); image_HandlerDelete( p_image );
return VLC_SUCCESS; return VLC_SUCCESS;
......
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