repair default keyframe load, tweak init default histogram threshold
[goodguy/history.git] / cinelerra-5.1 / cinelerra / recordgui.C
index 00b257e9b930cb2e242c02ef132c97dcc2356a22..9cc56e02cebef82a375146cdce4b704dd90acc7a 100644 (file)
@@ -1,7 +1,7 @@
 
 /*
  * CINELERRA
- * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2008-2017 Adam Williams <broadcast at earthling dot net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -116,8 +116,8 @@ RecordGUI::RecordGUI(MWindow *mwindow, Record *record)
 
 RecordGUI::~RecordGUI()
 {
-TRACE("RecordGUI::~RecordGUI 1");
        delete status_thread;
+       delete record_transport;
        delete batch_source;
        delete batch_mode;
        delete batch_flash;
@@ -126,7 +126,6 @@ TRACE("RecordGUI::~RecordGUI 1");
        delete batch_start;
        delete batch_duration;
        delete load_mode;
-TRACE("RecordGUI::~RecordGUI 2");
 }
 
 
@@ -656,7 +655,7 @@ int RecordGUIDropFrames::handle_event()
 
 int RecordGUIDropFrames::keypress_event()
 {
-       if(get_keypress() == 'd') {
+       if( get_keypress() == caption[0] ) {
                set_value(get_value() ? 0 : 1);
                handle_event();
                return 1;
@@ -680,7 +679,7 @@ int RecordGUIFillFrames::handle_event()
 
 int RecordGUIFillFrames::keypress_event()
 {
-       if(get_keypress() == 'f') {
+       if( get_keypress() == caption[0] ) {
                set_value(get_value() ? 0 : 1);
                handle_event();
                return 1;
@@ -704,7 +703,7 @@ int RecordGUIPowerOff::handle_event()
 
 int RecordGUIPowerOff::keypress_event()
 {
-       if(get_keypress() == 'p') {
+       if( get_keypress() == caption[0] ) {
                set_value(get_value() ? 0 : 1);
                handle_event();
                return 1;
@@ -730,7 +729,7 @@ int RecordGUICommCheck::handle_event()
 
 int RecordGUICommCheck::keypress_event()
 {
-       if(get_keypress() == 'c') {
+       if( get_keypress() == caption[0] ) {
                set_value(get_value() ? 0 : 1);
                gui->record->update_skimming(get_value());
                handle_event();
@@ -1005,7 +1004,7 @@ int RecordGUILabel::handle_event()
 
 int RecordGUILabel::keypress_event()
 {
-       if(get_keypress() == 'l') {
+       if( get_keypress() == *get_text() ) {
                handle_event();
                return 1;
        }
@@ -1384,6 +1383,7 @@ RecordStatusThread::~RecordStatusThread()
                input_lock->unlock();
        }
        Thread::join();
+       delete input_lock;
 }
 
 void RecordStatusThread::reset_video()
@@ -1612,5 +1612,3 @@ int RecordGUIResetTranslation::handle_event()
        return 1;
 }
 
-
-