X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fsamplingbar.cpp;h=41e98be2653e67602a9eede6888d8662106edb0c;hb=eb2b2d91e24d796c544a14d58a413df05e6eb7b9;hp=8bdadbb149709697e738f26190656d4b3084380f;hpb=d2aad78135050b13f1cf211fa0025aef1a238edf;p=pulseview.git diff --git a/pv/samplingbar.cpp b/pv/samplingbar.cpp index 8bdadbb..41e98be 100644 --- a/pv/samplingbar.cpp +++ b/pv/samplingbar.cpp @@ -22,15 +22,13 @@ #include -extern "C" { #include -} #include #include "samplingbar.h" -#include +#include namespace pv { @@ -177,7 +175,7 @@ void SamplingBar::update_sample_rate_selector() assert(_sample_rate_value_action); assert(_sample_rate_list_action); - if (sr_info_get(sdi->driver, SR_DI_SAMPLERATES, + if (sr_config_list(sdi->driver, SR_CONF_SAMPLERATE, (const void **)&samplerates, sdi) != SR_OK) return; @@ -214,7 +212,7 @@ void SamplingBar::configure() sr_dev_inst *const sdi = get_selected_device(); assert(sdi); - pv::dialogs::HwCap dlg(this, sdi); + pv::dialogs::DeviceOptions dlg(this, sdi); dlg.exec(); }