Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / render.C
index a7456717556bc3e58e194578bf297de7ab7576c2..a43449e4b94a43eb99e8541fa148ab1fb232dd42 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * CINELERRA
  * Copyright (C) 1997-2011 Adam Williams <broadcast at earthling dot net>
+ * 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
@@ -684,7 +685,7 @@ void RenderThread::render_single(int test_overwrite, Asset *asset, EDL *edl,
        render->result = 0;
 
 // Create rendering command
-       TransportCommand *command = new TransportCommand;
+       TransportCommand *command = new TransportCommand(render->preferences);
        command->command = NORMAL_FWD;
        command->get_edl()->copy_all(edl);
        command->change_type = CHANGE_ALL;
@@ -726,6 +727,11 @@ void RenderThread::render_single(int test_overwrite, Asset *asset, EDL *edl,
        if( !render->result ) {
 // Get total range to render
                render->total_start = command->start_position;
+#if 0
+               render->default_asset->timecode = command->start_position;
+               printf("tc: %f \n", render->default_asset->timecode);
+               render->default_asset->timecode += edl->session->timecode_offset;
+#endif
                render->total_end = command->end_position;
                total_length = render->total_end - render->total_start;