Commit c7b2f7f2 authored by Ilkka Ollakka's avatar Ilkka Ollakka

record: add few likely/unlikely macros

parent ddb1bc74
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment