summaryrefslogtreecommitdiffstats
path: root/src/JackInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-27 22:22:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-27 22:22:29 +0200
commita99a2e2c600ee81dae8c14e09319359d2bfac9a2 (patch)
treefc4ab3f2870b1a26450a5fe0f62a234ccc9aaaef /src/JackInput.h
parent45613a2ac14272c3e4779dd9aa971b5160bb060e (diff)
downloadODR-AudioEnc-a99a2e2c600ee81dae8c14e09319359d2bfac9a2.tar.gz
ODR-AudioEnc-a99a2e2c600ee81dae8c14e09319359d2bfac9a2.tar.bz2
ODR-AudioEnc-a99a2e2c600ee81dae8c14e09319359d2bfac9a2.zip
Change JackInput to char* to avoid crash when JACK compiled in but not used
Diffstat (limited to 'src/JackInput.h')
-rw-r--r--src/JackInput.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/JackInput.h b/src/JackInput.h
index d5832c7..36cd34f 100644
--- a/src/JackInput.h
+++ b/src/JackInput.h
@@ -37,7 +37,7 @@ extern "C" {
class JackInput
{
public:
- JackInput(const std::string& jack_name,
+ JackInput(const char* jack_name,
unsigned int channels,
unsigned int samplerate,
SampleQueue<uint8_t>& queue) :
@@ -63,7 +63,7 @@ class JackInput
std::vector<jack_port_t*> m_input_ports;
- std::string m_jack_name;
+ const char* m_jack_name;
unsigned int m_channels;
unsigned int m_rate;