1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00

ATV demod: initialize m_tvScreenBuffer when setting m_registeredTVScreen.

This commit is contained in:
f4exb 2020-12-10 06:50:15 +01:00
parent 04dbb028aa
commit ae3ce79cf2

View File

@ -45,7 +45,11 @@ public:
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end);
void setScopeSink(BasebandSampleSink* scopeSink) { m_scopeSink = scopeSink; }
void setTVScreen(TVScreenAnalog *tvScreen) { m_registeredTVScreen = tvScreen; } //!< set by the GUI
void setTVScreen(TVScreenAnalog *tvScreen) //!< set by the GUI
{
m_registeredTVScreen = tvScreen;
m_tvScreenBuffer = m_registeredTVScreen->getBackBuffer();
}
double getMagSq() const { return m_magSqAverage; } //!< Beware this is scaled to 2^30
bool getBFOLocked();
void setVideoTabIndex(int videoTabIndex) { m_videoTabIndex = videoTabIndex; }
@ -312,4 +316,4 @@ private:
}
};
#endif // INCLUDE_ATVDEMODSINK_H
#endif // INCLUDE_ATVDEMODSINK_H