[vlc-devel] commit: Made picture_Hold return the provided picture. (Laurent Aimar )

git version control git at videolan.org
Sun May 31 17:37:55 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun May 31 17:31:17 2009 +0200| [359b5a0effa9e29bc7269a78eb29ec254506313b] | committer: Laurent Aimar 

Made picture_Hold return the provided picture.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=359b5a0effa9e29bc7269a78eb29ec254506313b
---

 include/vlc_picture.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/vlc_picture.h b/include/vlc_picture.h
index f352d84..ae7c84a 100644
--- a/include/vlc_picture.h
+++ b/include/vlc_picture.h
@@ -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.




More information about the vlc-devel mailing list