From be3f020bce7a85df7aa42a622e87018fea325c6c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Mon, 29 Apr 2013 21:36:32 +0200 Subject: crc-dabmod: fix myMuting initialisation in OutputUHD --- src/OutputUHD.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp index 474575e..21e236e 100644 --- a/src/OutputUHD.cpp +++ b/src/OutputUHD.cpp @@ -53,6 +53,7 @@ OutputUHD::OutputUHD( mute_no_timestamps = config.muteNoTimestamps; enable_sync = config.enableSync; myDevice = config.device; + myMuting = 0; MDEBUG("OutputUHD::OutputUHD(device: %s) @ %p\n", myDevice.c_str(), this); @@ -403,8 +404,14 @@ void UHDWorker::process(struct UHDWorkerData *uwd) if (uwd->muting || uwd->muteNoTimestamps) { /* There was some error decoding the timestamp */ - fprintf(stderr, "UHDOut: Muting sample %d : no timestamp\n", - frame->fct); + if (uwd->muting) { + fprintf(stderr, "UHDOut: Muting sample %d requested\n", + frame->fct); + } + else { + fprintf(stderr, "UHDOut: Muting sample %d : no timestamp\n", + frame->fct); + } usleep(20000); goto loopend; } -- cgit v1.2.3