Commit 45ff2941 authored by Alexandre Savard's avatar Alexandre Savard

[#1962] Fix opening source with stored device

parent 6c249145
......@@ -496,8 +496,8 @@ bool PulseLayer::createStreams (pa_context* c)
recordParam->mainloop = m;
record = new AudioStream (recordParam, _audioSampleRate);
if(inSinkList(recordDevice)) {
record->connectStream(NULL);
if(inSourceList(recordDevice)) {
record->connectStream(&recordDevice);
}
else {
record->connectStream(NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment