projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vicon jittering, opengl no draw_refresh if no ovly for last frame
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
vdevicex11.C
diff --git
a/cinelerra-5.1/cinelerra/vdevicex11.C
b/cinelerra-5.1/cinelerra/vdevicex11.C
index a92986c1e6c7d695c74b67c2ad36dbab76d551a2..fc9e84097a0bc2c44f9e99c3510fb755746a1dbc 100644
(file)
--- a/
cinelerra-5.1/cinelerra/vdevicex11.C
+++ b/
cinelerra-5.1/cinelerra/vdevicex11.C
@@
-161,12
+161,20
@@
int VDeviceX11::close_all()
if( output ) {
output->lock_canvas("VDeviceX11::close_all 1");
output->get_canvas()->lock_window("VDeviceX11::close_all 1");
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( output && output_frame ) {
output->update_refresh(device, output_frame);
- if( device->single_frame )
- output->draw_refresh();
+// if the last frame is good, don't draw over it
+ if( output->need_overlays() )
+ output->draw_refresh(1);
}
delete bitmap; bitmap = 0;
}
delete bitmap; bitmap = 0;
@@
-174,14
+182,6
@@
int VDeviceX11::close_all()
delete capture_bitmap; capture_bitmap = 0;
if( output ) {
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();
}
output->get_canvas()->unlock_window();
output->unlock_canvas();
}