]> git.sesse.net Git - vlc/commitdiff
picture_t->i_refcount is unsigned, so never < 0
authorRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 18:47:43 +0000 (18:47 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 18:47:43 +0000 (18:47 +0000)
src/video_output/vout_pictures.c

index b4d34d43dfc063d5036f3f3e5826d6c1e96e7077..1c7cdc86acf9c8cb40ea89d54c17b4c7a1e8e683 100644 (file)
@@ -253,13 +253,6 @@ void vout_UnlinkPicture( vout_thread_t *p_vout, picture_t *p_pic )
     vlc_mutex_lock( &p_vout->picture_lock );
     p_pic->i_refcount--;
 
-    if( p_pic->i_refcount < 0 )
-    {
-        msg_Err( p_vout, "picture %p refcount is %i",
-                 p_pic, p_pic->i_refcount );
-        p_pic->i_refcount = 0;
-    }
-
     if( ( p_pic->i_refcount == 0 ) &&
         ( p_pic->i_status == DISPLAYED_PICTURE ) )
     {