mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 12:51:49 -05:00
ATV demod: fixed segfault when TV screen pointer is not set yet by the GUI
This commit is contained in:
parent
2e89f7e5a9
commit
deefab7c7c
@ -431,13 +431,13 @@ void ATVDemod::demod(Complex& c)
|
||||
|
||||
//********** process video sample **********
|
||||
|
||||
if (m_running.m_enmATVStandard == ATVStdHSkip)
|
||||
if (m_registeredTVScreen) // can process only if the screen is available (set via the GUI)
|
||||
{
|
||||
processHSkip(fltVal, intVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
processClassic(fltVal, intVal);
|
||||
if (m_running.m_enmATVStandard == ATVStdHSkip) {
|
||||
processHSkip(fltVal, intVal);
|
||||
} else {
|
||||
processClassic(fltVal, intVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ public:
|
||||
virtual QByteArray serialize() const { return QByteArray(); }
|
||||
virtual bool deserialize(const QByteArray& data __attribute__((unused))) { return false; }
|
||||
|
||||
void setTVScreen(TVScreen *objScreen);
|
||||
void setTVScreen(TVScreen *objScreen); //!< set by the GUI
|
||||
int getSampleRate();
|
||||
int getEffectiveSampleRate();
|
||||
double getMagSq() const { return m_objMagSqAverage; } //!< Beware this is scaled to 2^30
|
||||
|
Loading…
Reference in New Issue
Block a user