<br><br>On Friday, August 6, 2021, Andrea paz <<a href="mailto:gamberucci.andrea@gmail.com">gamberucci.andrea@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also the second patch does not work on my CinGG: neither using RMB +<br>
attach effect nor using Video --> attach effect.</blockquote><div><br></div><div><br></div><div>o. O</div><div><br></div><div>no idea why... can you visually inspect patched files (cinelerra/plugindialog.C and cinelerra/mwindowedit.C) and confirm those calls actually changed? </div><div><br></div><div>$ cat in_out_selection.diff</div><div>diff --git a/cinelerra-5.1/cinelerra/mwindowedit.C b/cinelerra-5.1/cinelerra/mwindowedit.C</div><div>index 6744cee8..458ced96 100644</div><div>--- a/cinelerra-5.1/cinelerra/mwindowedit.C</div><div>+++ b/cinelerra-5.1/cinelerra/mwindowedit.C</div><div>@@ -841,8 +841,8 @@ void MWindow::insert_effect(char *title, SharedLocation *shared_location,</div><div> SharedLocation shared_location_local;</div><div> shared_location_local.copy_from(shared_location);</div><div> int first_track = 1;</div><div>- double start_pos = edl->local_session->get_selectionstart(1);</div><div>- double end_pos = edl->local_session->get_selectionend(1);</div><div>+ double start_pos = edl->local_session->get_selectionstart();</div><div>+ double end_pos = edl->local_session->get_selectionend();</div><div> for( ; current; current=NEXT ) {</div><div> if( current->data_type != data_type ) continue;</div><div> if( !current->is_armed() ) continue;</div><div>$ cat in_out_selection-2.diff</div><div>diff --git a/cinelerra-5.1/cinelerra/plugindialog.C b/cinelerra-5.1/cinelerra/plugindialog.C</div><div>index 48f470e6..fa24bb5b 100644</div><div>--- a/cinelerra-5.1/cinelerra/plugindialog.C</div><div>+++ b/cinelerra-5.1/cinelerra/plugindialog.C</div><div>@@ -463,8 +463,8 @@ void PluginDialogThread::apply()</div><div> &shared_location, plugin_type);</div><div> }</div><div> else if( edl->tracks->track_exists(track) ) {</div><div>- double start = edl->local_session->get_selectionstart(1);</div><div>- double end = edl->local_session->get_selectionend(1);</div><div>+ double start = edl->local_session->get_selectionstart();</div><div>+ double end = edl->local_session->get_selectionend();</div><div> if( start >= end ) {</div><div> start = 0;</div><div> end = track->get_length();</div><div>$</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No messages appear on the terminal.<br>
</blockquote><div><br></div><div>this is normal, this time i did not added any debug printfs) </div><div><br></div><div><br></div>