[Cin] I tried to restore "Warn on EDL version mismatch' preference setting

Andrew Randrianasulu randrianasulu at gmail.com
Wed Jan 13 08:02:56 CET 2021


I tested with with artificially modified project file (changed version to 5.0)
it seems to work, and now this psecific warning show up depending on preferences setting/toggle.

---
diff --git a/cinelerra-5.1/cinelerra/mwindow.C b/cinelerra-5.1/cinelerra/mwindow.C
index 04549fde..8551c2e3 100644
--- a/cinelerra-5.1/cinelerra/mwindow.C
+++ b/cinelerra-5.1/cinelerra/mwindow.C
@@ -2211,8 +2211,11 @@ if(debug) printf("MWindow::load_filenames %d\n", __LINE__);
                        if( strcmp(cin_version, CINELERRA_VERSION) &&
                            strcmp(cin_version, "Unify") &&
                            strcmp(cin_version, "5.1") ) {
-                               eprintf(_("Warning: XML from cinelerra version %s\n"
-                                       "Session data may be incompatible."), cin_version);
+                               char string[BCTEXTLEN];
+                                snprintf(string, sizeof(string),
+                                      _("Warning: XML from cinelerra version %s\n"
+                                     "Session data may be incompatible."), cin_version);
+                                show_warning(&preferences->warn_version, string);
                        }
                        if( new_edl->load_xml(&xml_file, LOAD_ALL) ) {
                                eprintf(_("Error: unable to load:\n  %s"), filename);

---

But I have another warning coming from plugin server (because in old CinGG plugin names were localized)
Still, old Cin 5.1 project can be loaded if I insist (load it again after warning first show up)

Not sure if we should consider this bug or feature .....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EDL_VER_warning_pref_restored.diff
Type: text/x-diff
Size: 991 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210113/48debaa7/attachment.bin>


More information about the Cin mailing list