aboutsummaryrefslogtreecommitdiffstats
path: root/etisnoop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'etisnoop.cpp')
-rw-r--r--etisnoop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/etisnoop.cpp b/etisnoop.cpp
index e81741e..5e3188c 100644
--- a/etisnoop.cpp
+++ b/etisnoop.cpp
@@ -103,8 +103,9 @@ int main(int argc, char *argv[])
switch (ch) {
case 'd':
{
+ int subchix = atoi(optarg);
DabPlusSnoop dps;
- streams_to_decode[atoi(optarg)] = dps;
+ streams_to_decode[subchix] = dps;
}
break;
case 'e':
@@ -346,6 +347,7 @@ int eti_analyse(eti_analyse_config_t& config)
if (config.streams_to_decode.count(i) > 0) {
config.streams_to_decode[i].set_subchannel_index(stl[i]/3);
+ config.streams_to_decode[i].set_index(i);
}
}