fix initialized result in grab, fix empty mixer paste, tweak cuda drop compute_30...
authorGood Guy <[email protected]>
Tue, 28 Jul 2020 02:15:29 +0000 (20:15 -0600)
committerGood Guy <[email protected]>
Tue, 28 Jul 2020 02:15:29 +0000 (20:15 -0600)
cinelerra-5.1/cinelerra/zwindowgui.C
cinelerra-5.1/guicast/bcwindowbase.C

index 515d41ba047d55ade72ef7f8b3ff53f82e9bb478..722e6c14988dc7c7186ffc9f9e2991684a18cfdc 100644 (file)
@@ -130,7 +130,7 @@ int ZWindowGUI::button_press_event()
                        start = mwindow->edl->tracks->total_recordable_length();
                        if( start < 0 ) start = end;
                }
-               if( (end-start) > 1e-4 ) {
+               if( (end-start) > 1e-4 && zwindow->edl ) {
                        LocalSession *zlocal_session = zwindow->edl->local_session;
                        zlocal_session->set_selectionstart(end);
                        zlocal_session->set_selectionend(end);
index 87148812489889c2d97640af4217eb8c51270e39..9f3e2123c843c7e0f336ae1d4c53105b03b04a71 100644 (file)
@@ -963,6 +963,7 @@ if( debug && event->type != ClientMessage ) {
        if( active_grab ) {
                grab_lock->lock("BC_WindowBase::dispatch_event 3");
                unlock_window();
+               result = 0;
                if( active_grab ) {
                        active_grab->lock_window("BC_WindowBase::dispatch_event 3");
                        result = active_grab->grab_event(event);