vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Sat Jun 30 
14:54:16 2012 +0300| [300b4d59e370e02af65f215789643ff09550577d] | committer: 
Hugo Beauzée-Luyssen

ogg: Use unlikely()

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

 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 ca8d600..606fbe5 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -896,7 +896,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 );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to