Tiny error check for capture buffer
Merge remote-tracking branch 'origin/master'
Added the update and close device for directshow grabber