Commit bc93cce1 authored by Laurent Aimar's avatar Laurent Aimar

Reduced sleep while waiting for a frame in transcode.

 It vastly improves CPU usage but it does not fix the underlaying problem
of using sleep instead of a signal.
parent ec2aed2f
...@@ -2091,7 +2091,7 @@ static picture_t *video_new_buffer_decoder( decoder_t *p_dec ) ...@@ -2091,7 +2091,7 @@ static picture_t *video_new_buffer_decoder( decoder_t *p_dec )
{ {
/* Encoder still has stuff to encode, wait to clear-up the list */ /* Encoder still has stuff to encode, wait to clear-up the list */
while( p_ssys->i_first_pic == i_first_pic ) while( p_ssys->i_first_pic == i_first_pic )
msleep( 100000 ); msleep( 5000 );
} }
} }
......
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