+ int64_t start_position, end_position;
+ int play_loop = renderengine->command->play_loop;
+ int loop_playback = renderengine->get_edl()->local_session->loop_playback;
+ if( play_loop || !loop_playback ) {
+ start_position = tounits(renderengine->command->start_position, 0);
+ end_position = tounits(renderengine->command->end_position, 1);
+ }
+ else {
+ start_position = tounits(renderengine->get_edl()->local_session->loop_start, 0);
+ end_position = tounits(renderengine->get_edl()->local_session->loop_end, 1);
+ play_loop = 1;
+ }