@@ -475,11 +475,10 @@ std::shared_ptr<Frame> Timeline::GetOrCreateFrame(std::shared_ptr<Frame> backgro
475475}
476476
477477// Process a new layer of video or audio
478- void Timeline::add_layer (std::shared_ptr<Frame> new_frame, Clip* source_clip, int64_t clip_frame_number, int64_t timeline_frame_number, bool is_top_clip, float max_volume)
478+ void Timeline::add_layer (std::shared_ptr<Frame> new_frame, Clip* source_clip, int64_t clip_frame_number, bool is_top_clip, float max_volume)
479479{
480480 // Create timeline options (with details about this current frame request)
481481 TimelineInfoStruct* options = new TimelineInfoStruct ();
482- options->timeline_frame_number = timeline_frame_number;
483482 options->is_top_clip = is_top_clip;
484483
485484 // Get the clip's frame, composited on top of the current timeline frame
@@ -492,12 +491,12 @@ void Timeline::add_layer(std::shared_ptr<Frame> new_frame, Clip* source_clip, in
492491 return ;
493492
494493 // Debug output
495- ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::add_layer" , " new_frame->number" , new_frame->number , " clip_frame_number" , clip_frame_number, " timeline_frame_number " , timeline_frame_number );
494+ ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::add_layer" , " new_frame->number" , new_frame->number , " clip_frame_number" , clip_frame_number);
496495
497496 /* COPY AUDIO - with correct volume */
498497 if (source_clip->Reader ()->info .has_audio ) {
499498 // Debug output
500- ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::add_layer (Copy Audio)" , " source_clip->Reader()->info.has_audio" , source_clip->Reader ()->info .has_audio , " source_frame->GetAudioChannelsCount()" , source_frame->GetAudioChannelsCount (), " info.channels" , info.channels , " clip_frame_number" , clip_frame_number, " timeline_frame_number " , timeline_frame_number );
499+ ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::add_layer (Copy Audio)" , " source_clip->Reader()->info.has_audio" , source_clip->Reader ()->info .has_audio , " source_frame->GetAudioChannelsCount()" , source_frame->GetAudioChannelsCount (), " info.channels" , info.channels , " clip_frame_number" , clip_frame_number);
501500
502501 if (source_frame->GetAudioChannelsCount () == info.channels && source_clip->has_audio .GetInt (clip_frame_number) != 0 )
503502 for (int channel = 0 ; channel < source_frame->GetAudioChannelsCount (); channel++)
@@ -550,7 +549,7 @@ void Timeline::add_layer(std::shared_ptr<Frame> new_frame, Clip* source_clip, in
550549 }
551550 else
552551 // Debug output
553- ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::add_layer (No Audio Copied - Wrong # of Channels)" , " source_clip->Reader()->info.has_audio" , source_clip->Reader ()->info .has_audio , " source_frame->GetAudioChannelsCount()" , source_frame->GetAudioChannelsCount (), " info.channels" , info.channels , " clip_frame_number" , clip_frame_number, " timeline_frame_number " , timeline_frame_number );
552+ ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::add_layer (No Audio Copied - Wrong # of Channels)" , " source_clip->Reader()->info.has_audio" , source_clip->Reader ()->info .has_audio , " source_frame->GetAudioChannelsCount()" , source_frame->GetAudioChannelsCount (), " info.channels" , info.channels , " clip_frame_number" , clip_frame_number);
554553 }
555554
556555 // Debug output
@@ -753,7 +752,7 @@ std::shared_ptr<Frame> Timeline::GetFrame(int64_t requested_frame)
753752 ZmqLogger::Instance ()->AppendDebugMethod (" Timeline::GetFrame (Calculate clip's frame #)" , " clip->Position()" , clip->Position (), " clip->Start()" , clip->Start (), " info.fps.ToFloat()" , info.fps .ToFloat (), " clip_frame_number" , clip_frame_number);
754753
755754 // Add clip's frame as layer
756- add_layer (new_frame, clip, clip_frame_number, requested_frame, is_top_clip, max_volume);
755+ add_layer (new_frame, clip, clip_frame_number, is_top_clip, max_volume);
757756
758757 } else {
759758 // Debug output
0 commit comments