diff options
author | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-04-29 21:36:32 +0200 |
---|---|---|
committer | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-04-29 21:36:32 +0200 |
commit | be3f020bce7a85df7aa42a622e87018fea325c6c (patch) | |
tree | 982746f517196a95820c4fd474d3f969f120d9f9 | |
parent | ba2abbb338010cae405eba568fd0d85732b0634e (diff) | |
download | dabmod-be3f020bce7a85df7aa42a622e87018fea325c6c.tar.gz dabmod-be3f020bce7a85df7aa42a622e87018fea325c6c.tar.bz2 dabmod-be3f020bce7a85df7aa42a622e87018fea325c6c.zip |
crc-dabmod: fix myMuting initialisation in OutputUHD
-rw-r--r-- | src/OutputUHD.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
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; } |