if( output ) {
output->lock_canvas("VDeviceX11::close_all 1");
output->get_canvas()->lock_window("VDeviceX11::close_all 1");
+// Update the status bug
+ if( !device->single_frame ) {
+ output->stop_video();
+ }
+ else {
+ output->stop_single();
+ }
}
if( output && output_frame ) {
output->update_refresh(device, output_frame);
- if( device->single_frame )
- output->draw_refresh();
+ output->draw_refresh(1);
}
delete bitmap; bitmap = 0;
delete capture_bitmap; capture_bitmap = 0;
if( output ) {
-// Update the status bug
- if( !device->single_frame ) {
- output->stop_video();
- }
- else {
- output->stop_single();
- }
-
output->get_canvas()->unlock_window();
output->unlock_canvas();
}