mirror of
https://github.com/gqrx-sdr/gqrx.git
synced 2024-09-21 18:57:10 +00:00
Don't start receiver when Enable RDS is checked
This commit is contained in:
parent
a86ec4640a
commit
677d83324e
@ -2,6 +2,7 @@
|
||||
2.14.2: In progress...
|
||||
|
||||
FIXED: Handle invalid device strings gracefully.
|
||||
FIXED: Receiver starts unexpectedly when "Enable RDS" is checked.
|
||||
|
||||
|
||||
2.14.1: Released November 27, 2020
|
||||
|
@ -1379,18 +1379,32 @@ void receiver::get_rds_data(std::string &outbuff, int &num)
|
||||
}
|
||||
|
||||
void receiver::start_rds_decoder(void)
|
||||
{
|
||||
if (d_running)
|
||||
{
|
||||
stop();
|
||||
rx->start_rds_decoder();
|
||||
start();
|
||||
}
|
||||
else
|
||||
{
|
||||
rx->start_rds_decoder();
|
||||
}
|
||||
}
|
||||
|
||||
void receiver::stop_rds_decoder(void)
|
||||
{
|
||||
if (d_running)
|
||||
{
|
||||
stop();
|
||||
rx->stop_rds_decoder();
|
||||
start();
|
||||
}
|
||||
else
|
||||
{
|
||||
rx->stop_rds_decoder();
|
||||
}
|
||||
}
|
||||
|
||||
bool receiver::is_rds_decoder_active(void) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user