Skip to content

Commit 43c167d

Browse files
committed
Fix frame position in the consumer producer
It did not work correctly with in and out points and keyframes within the contained producer's filters. mlt_producer_frame() returns the absolute position, consistent with a tractor/multitrack producer. See https://forum.shotcut.org/t/reframe-with-keyframes-disregarded-on-export-from-marker-v26/51450
1 parent c652d80 commit 43c167d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/core/producer_consumer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* producer_consumer.c -- produce as a consumer of an encapsulated producer
3-
* Copyright (C) 2008-2022 Meltytech, LLC
3+
* Copyright (C) 2008-2026 Meltytech, LLC
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public
@@ -224,7 +224,7 @@ static int get_frame(mlt_producer self, mlt_frame_ptr frame, int index)
224224
mlt_frame_push_audio(*frame, get_audio);
225225

226226
// Give the returned frame temporal identity
227-
mlt_frame_set_position(*frame, mlt_producer_position(self));
227+
mlt_frame_set_position(*frame, mlt_producer_frame(self));
228228

229229
// Store the nested frame on the produced frame for destruction
230230
mlt_properties frame_props = MLT_FRAME_PROPERTIES(*frame);

0 commit comments

Comments
 (0)