Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: INPUT_STREAM_STATS_ -> SIGNAL_STATUS_
  • Loading branch information
perexg committed Aug 18, 2014
1 parent dbd5b24 commit 2f9ab1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -715,12 +715,12 @@ satip_frontend_decode_rtcp( satip_frontend_t *lfe, const char *name,
mmi->mmi_stats.signal =
atoi(argv[1]) * 0xffff / lfe->sf_device->sd_sig_scale;
mmi->mmi_stats.signal_scale =
INPUT_STREAM_STATS_SCALE_RELATIVE;
SIGNAL_STATUS_SCALE_RELATIVE;
if (atoi(argv[2]) > 0)
status = SIGNAL_GOOD;
mmi->mmi_stats.snr = atoi(argv[3]) * 0xffff / 15;
mmi->mmi_stats.snr_scale =
INPUT_STREAM_STATS_SCALE_RELATIVE;
SIGNAL_STATUS_SCALE_RELATIVE;
if (status == SIGNAL_GOOD &&
mmi->mmi_stats.signal == 0 && mmi->mmi_stats.snr == 0) {
/* some values that we're tuned */
Expand All @@ -740,12 +740,12 @@ satip_frontend_decode_rtcp( satip_frontend_t *lfe, const char *name,
mmi->mmi_stats.signal =
atoi(argv[1]) * 0xffff / lfe->sf_device->sd_sig_scale;
mmi->mmi_stats.signal_scale =
INPUT_STREAM_STATS_SCALE_RELATIVE;
SIGNAL_STATUS_SCALE_RELATIVE;
if (atoi(argv[2]) > 0)
status = SIGNAL_GOOD;
mmi->mmi_stats.snr = atoi(argv[3]) * 0xffff / 15;
mmi->mmi_stats.snr_scale =
INPUT_STREAM_STATS_SCALE_RELATIVE;
SIGNAL_STATUS_SCALE_RELATIVE;
goto ok;
} else if (strncmp(s, "ver=1.1;tuner=", 14) == 0) {
n = http_tokenize(s + 14, argv, 4, ',');
Expand All @@ -756,12 +756,12 @@ satip_frontend_decode_rtcp( satip_frontend_t *lfe, const char *name,
mmi->mmi_stats.signal =
atoi(argv[1]) * 0xffff / lfe->sf_device->sd_sig_scale;
mmi->mmi_stats.signal_scale =
INPUT_STREAM_STATS_SCALE_RELATIVE;
SIGNAL_STATUS_SCALE_RELATIVE;
if (atoi(argv[2]) > 0)
status = SIGNAL_GOOD;
mmi->mmi_stats.snr = atoi(argv[3]) * 0xffff / 15;
mmi->mmi_stats.snr_scale =
INPUT_STREAM_STATS_SCALE_RELATIVE;
SIGNAL_STATUS_SCALE_RELATIVE;
goto ok;
}
}
Expand Down

0 comments on commit 2f9ab1b

Please sign in to comment.