From: FrancoisGrondin Date: Fri, 20 Oct 2017 17:40:03 +0000 (-0400) Subject: Bug fixed in separation module X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=52a8ebb1bb69fe8384f6d8ef0ca32d98f3e692b0;p=yn%2Fyn-odas.git Bug fixed in separation module --- diff --git a/src/module/mod_sss.c b/src/module/mod_sss.c index 094bf02..5895604 100644 --- a/src/module/mod_sss.c +++ b/src/module/mod_sss.c @@ -375,7 +375,27 @@ int mod_sss_process_mspf(mod_sss_obj * obj) { - // Empty + int rtnValue; + + if (msg_spectra_isZero(obj->in1) != msg_tracks_isZero(obj->in2)) { + + printf("Time stamp mismatch.\n"); + exit(EXIT_FAILURE); + + } + + if (msg_spectra_isZero(obj->in1) == 0) { + + rtnValue = 0; + + } + else { + + rtnValue = -1; + + } + + return rtnValue; }