[vlc-commits] ogg: Use unlikely()

Hugo Beauzée-Luyssen git at videolan.org
Tue Sep 4 00:04:09 CEST 2012


vlc/vlc-2.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Jun 30 14:54:16 2012 +0300| [f6fc507540c6f7f3f11238a3e0812c9dcd931afd] | committer: Jean-Baptiste Kempf

ogg: Use unlikely()
(cherry picked from commit 300b4d59e370e02af65f215789643ff09550577d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/ogg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 7e5c627..1a54039 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -912,7 +912,7 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
                 logical_stream_t *p_stream;
 
                 p_stream = malloc( sizeof(logical_stream_t) );
-                if( !p_stream )
+                if( unlikely( !p_stream ) )
                     return VLC_ENOMEM;
 
                 TAB_APPEND( p_ogg->i_streams, p_ogg->pp_stream, p_stream );



More information about the vlc-commits mailing list