vlc/vlc-2.0 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | 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 <[email protected]> > 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 ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
