mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-02 06:52:29 -04: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,14 +431,14 @@ void ATVDemod::demod(Complex& c)
|
|||||||
|
|
||||||
//********** process video sample **********
|
//********** process video sample **********
|
||||||
|
|
||||||
if (m_running.m_enmATVStandard == ATVStdHSkip)
|
if (m_registeredTVScreen) // can process only if the screen is available (set via the GUI)
|
||||||
{
|
{
|
||||||
|
if (m_running.m_enmATVStandard == ATVStdHSkip) {
|
||||||
processHSkip(fltVal, intVal);
|
processHSkip(fltVal, intVal);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
processClassic(fltVal, intVal);
|
processClassic(fltVal, intVal);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATVDemod::start()
|
void ATVDemod::start()
|
||||||
|
@ -231,7 +231,7 @@ public:
|
|||||||
virtual QByteArray serialize() const { return QByteArray(); }
|
virtual QByteArray serialize() const { return QByteArray(); }
|
||||||
virtual bool deserialize(const QByteArray& data __attribute__((unused))) { return false; }
|
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 getSampleRate();
|
||||||
int getEffectiveSampleRate();
|
int getEffectiveSampleRate();
|
||||||
double getMagSq() const { return m_objMagSqAverage; } //!< Beware this is scaled to 2^30
|
double getMagSq() const { return m_objMagSqAverage; } //!< Beware this is scaled to 2^30
|
||||||
|
Loading…
x
Reference in New Issue
Block a user