Do not reset buffers when calling SetPrescale with the current scaling values.
This commit is contained in:
parent
35a2ca9721
commit
a8fa8a44d6
|
@ -52,17 +52,20 @@ public:
|
|||
|
||||
void SetPrescale(int prescaleHD, int prescalePost)
|
||||
{
|
||||
free_aligned(buffer_raw);
|
||||
free_aligned(filteredbuffer);
|
||||
if (this->prescaleHD != prescaleHD || this->prescalePost != prescalePost)
|
||||
{
|
||||
free_aligned(buffer_raw);
|
||||
free_aligned(filteredbuffer);
|
||||
|
||||
this->prescaleHD = prescaleHD;
|
||||
this->prescalePost = prescalePost;
|
||||
this->prescaleHD = prescaleHD;
|
||||
this->prescalePost = prescalePost;
|
||||
|
||||
prescaleTotal = prescaleHD;
|
||||
prescaleTotal = prescaleHD;
|
||||
|
||||
ResizeBuffers();
|
||||
ResizeBuffers();
|
||||
|
||||
setfilter(currentfilter);
|
||||
setfilter(currentfilter);
|
||||
}
|
||||
}
|
||||
|
||||
void ResizeBuffers()
|
||||
|
|
Loading…
Reference in New Issue