fix uninitialize in awdw gui view popup, repair renderengine tracking position update
authorGood Guy <[email protected]>
Sat, 16 Mar 2019 02:54:37 +0000 (20:54 -0600)
committerGood Guy <[email protected]>
Sat, 16 Mar 2019 02:54:37 +0000 (20:54 -0600)
cinelerra-5.1/cinelerra/awindowgui.C
cinelerra-5.1/cinelerra/renderengine.C

index 265f31ae33ef61307d136ca586552f50b065bddd..33a69aee380393b955530f2a31e193329143da12 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 aa16aafaca6a4347c93cee82d0f0e35de91a906d..25b8fbadf4eba14bc855b5a51353395ea80b7388 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 ) :