fix uninitialize in awdw gui view popup, repair renderengine tracking position update
authorGood Guy <good1.2guy@gmail.com>
Sat, 16 Mar 2019 02:54:37 +0000 (20:54 -0600)
committerGood Guy <good1.2guy@gmail.com>
Sat, 16 Mar 2019 02:54:37 +0000 (20:54 -0600)
cinelerra-5.1/cinelerra/awindowgui.C
cinelerra-5.1/cinelerra/renderengine.C

index 265f31a..33a69ae 100644 (file)
@@ -326,6 +326,7 @@ AssetViewPopup::AssetViewPopup(VIconThread *vt, int draw_mode,
 {
        this->draw_mode = draw_mode;
        this->bar_h = (VIEW_POPUP_BAR_H * h) / 200;
+       dragging = 0;
 }
 
 AssetViewPopup::~AssetViewPopup()
index aa16aaf..25b8fba 100644 (file)
@@ -468,7 +468,7 @@ void RenderEngine::run()
        close_output();
 
        if( playback_engine ) {
-               double position = command->single_frame() ? command->playbackstart :
+               double position = command->command == CURRENT_FRAME ? command->playbackstart :
                        playback_engine->is_playing_back && !interrupted ?
                                ( command->get_direction() == PLAY_FORWARD ?
                                        command->end_position : command->start_position ) :