[vlc-devel] commit: Simplification ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 18 22:28:54 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Dec  7 15:02:49 2008 +0200| [3897a418a4cb7c1f72f68519fd58f822ee136763] | committer: Rémi Denis-Courmont 

Simplification

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

 include/vlc_filter.h |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/include/vlc_filter.h b/include/vlc_filter.h
index 7a31da3..a7404a7 100644
--- a/include/vlc_filter.h
+++ b/include/vlc_filter.h
@@ -177,17 +177,12 @@ static inline block_t *filter_NewAudioBuffer( filter_t *p_filter, int i_size )
                                         picture_t *p_pic )              \
     {                                                                   \
         picture_t *p_outpic = filter_NewPicture( p_filter );            \
-        if( !p_outpic )                                                 \
+        if( p_outpic )                                                  \
         {                                                               \
-            picture_Release( p_pic );                                   \
-            return NULL;                                                \
+            name( p_filter, p_pic, p_outpic );                          \
+            picture_CopyProperties( p_outpic, p_pic );                  \
         }                                                               \
-                                                                        \
-        name( p_filter, p_pic, p_outpic );                              \
-                                                                        \
-        picture_CopyProperties( p_outpic, p_pic );                      \
         picture_Release( p_pic );                                       \
-                                                                        \
         return p_outpic;                                                \
     }
 




More information about the vlc-devel mailing list