[Cin] in/out point selected plugin attach fix?

Andrew Randrianasulu randrianasulu at gmail.com
Thu Aug 5 19:12:56 CEST 2021


My initial idea about modifying track.C was wrong, but even simpler mod
(attached) makes selection by setting in/out points and attaching plugin
from menu work...

in sense your plugin legth now can be set by setting i/o points not by just
mouse selection or making few cuts with 'x' blade and then selecting
block..

Phyllis, Andrea - can you give this patch a lot of testing? I mean with
many tracks (armed/disarmed), many plugins, shared plugins, gang modes,
etc...?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210805/ee394620/attachment.htm>
-------------- next part --------------
diff --git a/cinelerra-5.1/cinelerra/mwindowedit.C b/cinelerra-5.1/cinelerra/mwindowedit.C
index 6744cee8..458ced96 100644
--- a/cinelerra-5.1/cinelerra/mwindowedit.C
+++ b/cinelerra-5.1/cinelerra/mwindowedit.C
@@ -841,8 +841,8 @@ void MWindow::insert_effect(char *title, SharedLocation *shared_location,
 	SharedLocation shared_location_local;
 	shared_location_local.copy_from(shared_location);
 	int first_track = 1;
-	double start_pos = edl->local_session->get_selectionstart(1);
-	double end_pos = edl->local_session->get_selectionend(1);
+	double start_pos = edl->local_session->get_selectionstart();
+	double end_pos = edl->local_session->get_selectionend();
 	for( ; current; current=NEXT ) {
 		if( current->data_type != data_type ) continue;
 		if( !current->is_armed() ) continue;


More information about the Cin mailing list