Skip to content

Commit

Permalink
fix frames dropped/repeated in multi consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 28, 2024
1 parent 30a1280 commit 3056580
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/modules/core/consumer_multi.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2011-2023 Meltytech, LLC
* Copyright (C) 2011-2024 Meltytech, LLC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -399,6 +399,13 @@ static void foreach_consumer_put(mlt_consumer consumer, mlt_frame frame)
current_size += prev_size;
current_samples += mlt_properties_get_int(nested_props, "_multi_samples");

// This log line somehow fixes a bug in release build on clang/macOS
// https://forum.shotcut.org/t/shotcut-export-drops-frames/42676
mlt_log_debug(MLT_CONSUMER_SERVICE(consumer),
"%d: nested_time %g self_time %g\n",
nested_pos,
nested_time,
self_time);
while (nested_time <= self_time) {
// put ideal number of samples into cloned frame
int deeply = index > 1 ? 1 : 0;
Expand Down

0 comments on commit 3056580

Please sign in to comment.