Permalink
Browse files

Arbitrarily grab 3 frames

  • Loading branch information...
bmcdorman committed Jan 2, 2013
1 parent 3e8cf55 commit 665f343638b875f7660f551809570f7f28013302
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/camera.cpp
@@ -271,7 +271,9 @@ bool Camera::Device::update()
{
// Get new image
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);
if(!success) return false;

0 comments on commit 665f343

Please sign in to comment.