diff options
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/runtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/runtc.c b/decoder/runtc.c index 364e43f..f58e004 100644 --- a/decoder/runtc.c +++ b/decoder/runtc.c @@ -252,14 +252,14 @@ static void srd_cb_ann(struct srd_proto_data *pdata, void *cb_data) /* This is not the PD selected for output. */ return; - if (op->class_idx != -1 && op->class_idx != pda->ann_format) + if (op->class_idx != -1 && op->class_idx != pda->ann_class) /* * This output takes a specific annotation class, * but not the one that just came in. */ return; - dec_ann = g_slist_nth_data(dec->annotations, pda->ann_format); + dec_ann = g_slist_nth_data(dec->annotations, pda->ann_class); line = g_string_sized_new(256); g_string_printf(line, "%" PRIu64 "-%" PRIu64 " %s: %s:", pdata->start_sample, pdata->end_sample, |