]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decoderstack.cpp
Removed unused parameter in DecoderStack::decode_proc
[pulseview.git] / pv / data / decoderstack.cpp
index 87ac32613f954e8fdbaa4333513e4b3211266dbd..8284c7937c7a7ee6a68f334a587bee7374e97fcb 100644 (file)
@@ -249,8 +249,7 @@ void DecoderStack::begin_decode()
        if (_samplerate == 0.0)
                _samplerate = 1.0;
 
-       _decode_thread = boost::thread(&DecoderStack::decode_proc, this,
-               data);
+       _decode_thread = boost::thread(&DecoderStack::decode_proc, this);
 }
 
 uint64_t DecoderStack::get_max_sample_count() const
@@ -309,9 +308,10 @@ void DecoderStack::decode_data(
                }
        }
 
+       new_decode_data();
 }
 
-void DecoderStack::decode_proc(shared_ptr<data::Logic> data)
+void DecoderStack::decode_proc()
 {
        optional<int64_t> sample_count;
        srd_session *session;
@@ -413,8 +413,6 @@ void DecoderStack::annotation_callback(srd_proto_data *pdata, void *decoder)
 
        // Add the annotation
        (*row_iter).second.push_annotation(a);
-
-       d->new_decode_data();
 }
 
 void DecoderStack::on_new_frame()