aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_fm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtl_fm.c')
-rw-r--r--src/rtl_fm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtl_fm.c b/src/rtl_fm.c
index 5847d27..dffa62a 100644
--- a/src/rtl_fm.c
+++ b/src/rtl_fm.c
@@ -783,11 +783,12 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
{
int i;
struct dongle_state *s = ctx;
+ struct demod_state *d = s->demod_target;
+
if (do_exit) {
return;}
if (!ctx) {
return;}
- struct demod_state *d = s->demod_target;
if (s->mute) {
for (i=0; i<s->mute; i++) {
buf[i] = 127;}