Commit 0811bcbb authored by Gildas Bazin's avatar Gildas Bazin

* src/video_output: fixed a CPU heating loop in pause mode (fixes the problem...

* src/video_output: fixed a CPU heating loop in pause mode (fixes the problem with fast user switching on win32).
parent 6bc91ea5
......@@ -953,15 +953,18 @@ static void RunThread( vout_thread_t *p_vout)
p_vout->pf_display( p_vout, p_directbuffer );
}
/* Reinitialize idle loop count */
i_idle_loops = 0;
/* Tell the vout this was the last picture and that it does not
* need to be forced anymore. */
p_last_picture = p_picture;
p_last_picture->b_force = 0;
}
if( p_picture != NULL )
{
/* Reinitialize idle loop count */
i_idle_loops = 0;
}
/*
* Check events and manage thread
*/
......
......@@ -337,12 +337,7 @@ picture_t * vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
if( PP_OUTPUTPICTURE[0]->pf_lock )
if( PP_OUTPUTPICTURE[0]->pf_lock( p_vout, PP_OUTPUTPICTURE[0] ) )
{
if( PP_OUTPUTPICTURE[0]->pf_unlock )
PP_OUTPUTPICTURE[0]->pf_unlock( p_vout, PP_OUTPUTPICTURE[0] );
return NULL;
}
vout_CopyPicture( p_vout, PP_OUTPUTPICTURE[0], p_pic );
vout_RenderSubPictures( p_vout, PP_OUTPUTPICTURE[0], p_pic, p_subpic );
......
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