vlc | branch: master | Ilkka Ollakka <[email protected]> | Fri Mar 7 16:59:06 2014 +0200| [c7b2f7f2b47d205ec0da67c0cba8fef23b48a057] | committer: Ilkka Ollakka
record: add few likely/unlikely macros > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7b2f7f2b47d205ec0da67c0cba8fef23b48a057 --- modules/stream_out/record.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/stream_out/record.c b/modules/stream_out/record.c index 8231f48..926e5a9 100644 --- a/modules/stream_out/record.c +++ b/modules/stream_out/record.c @@ -559,7 +559,7 @@ static void OutputSend( sout_stream_t *p_stream, sout_stream_id_sys_t *id, block { /* We wait until the first key frame (if needed) and * to be beyong i_dts_start (for stream without key frame) */ - if( id->b_wait_key ) + if( unlikely( id->b_wait_key ) ) { if( p_block->i_flags & BLOCK_FLAG_TYPE_I ) { @@ -570,12 +570,12 @@ static void OutputSend( sout_stream_t *p_stream, sout_stream_id_sys_t *id, block if( ( p_block->i_flags & BLOCK_FLAG_TYPE_MASK ) == 0 ) id->b_wait_key = false; } - if( id->b_wait_start ) + if( unlikely( id->b_wait_start ) ) { if( p_block->i_dts >=p_sys->i_dts_start ) id->b_wait_start = false; } - if( id->b_wait_key || id->b_wait_start ) + if( unlikely( id->b_wait_key || id->b_wait_start ) ) block_ChainRelease( p_block ); else sout_StreamIdSend( p_sys->p_out, id->id, p_block ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
