diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-03-09 20:06:55 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-03-09 20:06:55 +0100 |
commit | 744bea73fb0e661c5f1dfa2b00cfb6940bfc6e37 (patch) | |
tree | a26389201e70f7b3f26d93eb7f1c760cb5f545cf /src/DabMod.cpp | |
parent | 972df5425ec5af00be79b2415925252fd99a67b3 (diff) | |
download | dabmod-744bea73fb0e661c5f1dfa2b00cfb6940bfc6e37.tar.gz dabmod-744bea73fb0e661c5f1dfa2b00cfb6940bfc6e37.tar.bz2 dabmod-744bea73fb0e661c5f1dfa2b00cfb6940bfc6e37.zip |
Change UHD config device to a std::string
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 29c0421..6d85c8e 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -413,7 +413,7 @@ int main(int argc, char* argv[]) useFileOutput = 1; } else if (output_selected == "uhd") { - outputuhd_conf.device = pt.get("uhdoutput.device", "").c_str(); + outputuhd_conf.device = pt.get("uhdoutput.device", ""); outputuhd_conf.txgain = pt.get("uhdoutput.txgain", 0); outputuhd_conf.frequency = pt.get<double>("uhdoutput.frequency", 0); std::string chan = pt.get<std::string>("uhdoutput.channel", ""); @@ -580,7 +580,7 @@ int main(int argc, char* argv[]) fprintf(stderr, " Source: %s\n", inputName.c_str()); fprintf(stderr, "Output\n"); if (useUHDOutput) { - fprintf(stderr, " UHD, Device: %s\n", outputuhd_conf.device); + fprintf(stderr, " UHD, Device: %s\n", outputuhd_conf.device.c_str()); } else if (useFileOutput) { fprintf(stderr, " Name: %s\n", outputName.c_str()); |