X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fdecoder.cpp;fp=pv%2Fdata%2Fdecode%2Fdecoder.cpp;h=f86c5d08dc86d9261718ab92e2005b1b30dbd914;hp=6ce60da8559c96e1e81e7b4e974ba4a6d42874a5;hb=72486b789078f024e4f3404f81118c03b03e2b70;hpb=53aa9bb42c921cfc3a658855598f984cdaac17d0 diff --git a/pv/data/decode/decoder.cpp b/pv/data/decode/decoder.cpp index 6ce60da8..f86c5d08 100644 --- a/pv/data/decode/decoder.cpp +++ b/pv/data/decode/decoder.cpp @@ -87,6 +87,11 @@ void Decoder::set_option(const char *id, GVariant *value) options_[id] = value; // If we have a decoder instance, apply option value immediately + apply_all_options(); +} + +void Decoder::apply_all_options() +{ if (decoder_inst_) { GHashTable *const opt_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_variant_unref);