<div dir="ltr"><div class="gmail_default" style="font-size:small">Yes -- good spot. THANKS, keep passing along these mistakes. gg/phyllis<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 12, 2020 at 3:00 AM Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have stupid question again...<br>
<br>
in file<br>
<br>
<a href="https://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-5.1/cinelerra/scale.C;h=8c7b49c9a2a68e6564782894f7e3823baf40a1a3;hb=HEAD" rel="noreferrer" target="_blank">https://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-5.1/cinelerra/scale.C;h=8c7b49c9a2a68e6564782894f7e3823baf40a1a3;hb=HEAD</a><br>
<br>
I can see such lines:<br>
<br>
60 <br>
61 void ScaleThread::run()<br>
62 {<br>
63 if(already_running) return;<br>
64 already_running = 1;<br>
65 constrain_ratio = mwindow->defaults->get("SCALECONSTRAIN", 0);<br>
66 scale_data = mwindow->defaults->get("SCALEDATA", 0);<br>
67 auto_aspect = mwindow->defaults->get("AUDIOASPECT", 0);<br>
68 offsets[0] = offsets[1] = offsets[2] = offsets[3] = 0;<br>
69 <br>
70 orig_dimension[0] = dimension[0] = mwindow->session->track_w;<br>
71 orig_dimension[1] = dimension[1] = mwindow->session->track_h;<br>
72 orig_dimension[2] = dimension[2] = mwindow->session->output_w;<br>
73 orig_dimension[3] = dimension[3] = mwindow->session->output_h;<br>
74 ratio[0] = ratio[1] = ratio[2] = ratio[3] = 1;<br>
75 aspect_w = mwindow->session->aspect_w;<br>
76 aspect_h = mwindow->session->aspect_h;<br>
77 <br>
78 window = new ScaleWindow(this);<br>
79 window->create_objects();<br>
80 int result = window->run_window();<br>
81 if(!result)<br>
82 {<br>
83 int dummy_offsets[4];<br>
84 dummy_offsets[0] = dummy_offsets[1] = dummy_offsets[2] = dummy_offsets[3] = 0;<br>
85 // Fake the offsets if data is scaled.<br>
86 <br>
87 // fix tracks<br>
88 //mwindow->stop_playback(1);<br>
89 // save the before undo<br>
90 mwindow->undo->update_undo_edits(_("Resize"), 0);<br>
91 mwindow->tracks->scale_video(dimension, scale_data ? dummy_offsets : offsets, scale_data);<br>
92 mwindow->session->track_w = dimension[0];<br>
93 mwindow->session->track_h = dimension[1];<br>
94 mwindow->session->output_w = dimension[2];<br>
95 mwindow->session->output_h = dimension[3];<br>
96 mwindow->session->aspect_w = aspect_w;<br>
97 mwindow->session->aspect_h = aspect_h;<br>
98 mwindow->video_window->resize_window();<br>
99 mwindow->draw();<br>
100 mwindow->undo->update_undo_edits();<br>
101 mwindow->session->changes_made = 1;<br>
102 mwindow->defaults->update("ASPECTW", aspect_w);<br>
103 mwindow->defaults->update("ASPECTH", aspect_h);<br>
104 mwindow->defaults->update("AUTOASPECT", auto_aspect);<br>
105 }<br>
106 delete window;<br>
107 <br>
108 mwindow->defaults->update("SCALECONSTRAIN", constrain_ratio);<br>
109 mwindow->defaults->update("SCALEDATA", scale_data);<br>
110 already_running = 0;<br>
111 }<br>
<br>
shouldn't line 67 reads as AUTOASPECT instead of AUDIOASPECT ?<br>
<br>
Found this while trying to debug bc2000 crash issue ...<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>