Commit 6b75ac7c authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer
Browse files

ios: do not keep more than one image in the output queue

parent f6eb45e8
......@@ -379,6 +379,8 @@ static void v4ios_process(MSFilter * obj){
ms_mutex_lock(&webcam->mutex);
if (webcam->msframe) {
// keep only the latest image
ms_queue_flush(obj->outputs[0]);
ms_queue_put(obj->outputs[0],webcam->msframe);
ms_video_update_average_fps(&webcam->averageFps, obj->ticker->time);
webcam->msframe=0;
......
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