vout_intf: do not vlc_object_release() the cache object since it no more obtained...
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Mon, 27 Oct 2008 11:44:19 +0000 (12:44 +0100)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Mon, 27 Oct 2008 11:44:44 +0000 (12:44 +0100)
src/video_output/vout_intf.c

index 5bc5316..fd6396c 100644 (file)
@@ -650,7 +650,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
             image_HandlerDelete( p_image );
             vlc_object_signal_unlocked( p_dest );
            vlc_object_unlock( p_dest );
-            vlc_object_release( p_dest );
             return VLC_EGENERIC;
         }
 
@@ -663,7 +662,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
             image_HandlerDelete( p_image );
             vlc_object_signal_unlocked( p_dest );
            vlc_object_unlock( p_dest );
-            vlc_object_release( p_dest );
             return VLC_ENOMEM;
         }
 
@@ -681,7 +679,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
             image_HandlerDelete( p_image );
             vlc_object_signal_unlocked( p_dest );
            vlc_object_unlock( p_dest );
-            vlc_object_release( p_dest );
             return VLC_ENOMEM;
         }
         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 )
         /* Unlock the object */
         vlc_object_signal_unlocked( p_dest );
        vlc_object_unlock( p_dest );
-        vlc_object_release( p_dest );
 
         image_HandlerDelete( p_image );
         return VLC_SUCCESS;