]> git.sesse.net Git - vlc/commitdiff
Made picture_Hold return the provided picture.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 31 May 2009 15:31:17 +0000 (17:31 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 31 May 2009 15:31:53 +0000 (17:31 +0200)
include/vlc_picture.h

index f352d845f39c55f4e5dae14c3ff288f70bbcfcd7..ae7c84a6d9bbad2fc17c72e61f8c1eeb3edc89dc 100644 (file)
@@ -183,11 +183,14 @@ VLC_EXPORT( void, picture_Delete, ( picture_t * ) );
 /**
  * This function will increase the picture reference count.
  * It will not have any effect on picture obtained from vout
+ *
+ * It returns the given picture for convenience.
  */
-static inline void picture_Hold( picture_t *p_picture )
+static inline picture_t *picture_Hold( picture_t *p_picture )
 {
     if( p_picture->pf_release )
         p_picture->i_refcount++;
+    return p_picture;
 }
 /**
  * This function will release a picture.