Commit 86572816 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use mwait and remove silly msleep usage

parent 8c95245b
...@@ -386,14 +386,11 @@ static int MjpgDemux( demux_t *p_demux ) ...@@ -386,14 +386,11 @@ static int MjpgDemux( demux_t *p_demux )
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
int i; int i;
if( p_sys->b_still && p_sys->i_still_end && p_sys->i_still_end < mdate() ) if( p_sys->b_still && p_sys->i_still_end )
{ {
/* Still frame, wait until the pause delay is gone */ /* Still frame, wait until the pause delay is gone */
mwait( p_sys->i_still_end );
p_sys->i_still_end = 0; p_sys->i_still_end = 0;
}
else if( p_sys->b_still && p_sys->i_still_end )
{
msleep( 400 );
return 1; return 1;
} }
......
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