X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftrackcanvas.C;h=c0fea44a35d82970fa662baf7f558a5e07a00a24;hb=HEAD;hp=d15f9a3774f0978adece81815e2adc412342b89e;hpb=b104b77f5296719bd5e6de8472eb71542ddaedec;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/trackcanvas.C b/cinelerra-5.1/cinelerra/trackcanvas.C index d15f9a37..4d3b0637 100644 --- a/cinelerra-5.1/cinelerra/trackcanvas.C +++ b/cinelerra-5.1/cinelerra/trackcanvas.C @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 1997-2014 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * 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 @@ -1482,7 +1483,9 @@ void TrackCanvas::draw_resources(int mode, if(MWindowGUI::visible(edit_x, edit_x + edit_w, 0, get_w()) && MWindowGUI::visible(edit_y, edit_y + edit_h, 0, get_h())) { - int64_t pixmap_x, pixmap_w, pixmap_h; + int64_t pixmap_x=0; + int64_t pixmap_w=0; + int64_t pixmap_h=0; if(debug) PRINT_TRACE // Search for existing pixmap containing edit @@ -4601,7 +4604,7 @@ int TrackCanvas::render_handle_frame(EDL *edl, int64_t pos, int mode) case 0: { VFrame vlt(edl->get_w(), edl->get_h(), edl->session->color_model); VFrame vrt(edl->get_w(), edl->get_h(), edl->session->color_model); - TransportCommand command; + TransportCommand command(mwindow->preferences); command.command = CURRENT_FRAME; command.get_edl()->copy_all((EDL *)edl); command.change_type = CHANGE_ALL;