Skip to content

Commit

Permalink
Merge pull request #1049 from gqrx-sdr/hier-disconnect-workaround
Browse files Browse the repository at this point in the history
Work around GNU Radio issue 5436
  • Loading branch information
argilo authored Jan 8, 2022
2 parents ae72d8a + adf47ac commit e4b98b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
NEW: Save & restore center frequency when playing I/Q files.
FIXED: Device selection fails for some SoapySDR devices.
FIXED: Segfault when starting AppImage on some systems.
FIXED: Crash/freeze after stopping audio recorder or AFSK1200 decoder.
IMPROVED: Frequency accuracy of plots at high zoom levels.


Expand Down
12 changes: 12 additions & 0 deletions src/applications/gqrx/receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,12 @@ receiver::status receiver::stop_audio_recording()
wav_sink->close();
tb->disconnect(rx, 0, wav_sink, 0);
tb->disconnect(rx, 1, wav_sink, 1);

// Temporary workaround for https://github.com/gnuradio/gnuradio/issues/5436
tb->disconnect(ddc, 0, rx, 0);
tb->connect(ddc, 0, rx, 0);
// End temporary workaronud

tb->unlock();
wav_sink.reset();
d_recording_wav = false;
Expand Down Expand Up @@ -1284,6 +1290,12 @@ receiver::status receiver::stop_sniffer()

tb->lock();
tb->disconnect(rx, 0, sniffer_rr, 0);

// Temporary workaround for https://github.com/gnuradio/gnuradio/issues/5436
tb->disconnect(ddc, 0, rx, 0);
tb->connect(ddc, 0, rx, 0);
// End temporary workaronud

tb->disconnect(sniffer_rr, 0, sniffer, 0);
tb->unlock();
d_sniffer_active = false;
Expand Down

0 comments on commit e4b98b7

Please sign in to comment.