Skip to content

Commit

Permalink
Arbitrarily grab 3 frames
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcdorman committed Jan 2, 2013
1 parent 3e8cf55 commit 665f343
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/camera.cpp
Expand Up @@ -271,7 +271,9 @@ bool Camera::Device::update()
{ {
// Get new image // Get new image
bool success = true; bool success = true;
while(m_capture->grab()); success &= m_capture->grab();
success &= m_capture->grab();
success &= m_capture->grab();
success &= m_capture->retrieve(m_image); success &= m_capture->retrieve(m_image);


if(!success) return false; if(!success) return false;
Expand Down

0 comments on commit 665f343

Please sign in to comment.