summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorHarris Georgiou <har.georgiou@gmail.com>2014-10-16 14:12:16 +0200
committerHarris Georgiou <har.georgiou@gmail.com>2014-10-16 14:12:16 +0200
commit8408e11e5d592d2270484818286a8854f2996271 (patch)
tree015dd0c63734ef0e6fb64917212fa9b16c8c9ea7 /RtAudio.cpp
parente2f63bd30514c7a8dc3439a681a87681ef0ad6d3 (diff)
Fix for NULL options in PULSE audio backend in probeDeviceOpen
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index af7d205..6ac99ce 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -8424,7 +8424,7 @@ bool RtApiPulse::probeDeviceOpen( unsigned int device, StreamMode mode,
pah = static_cast<PulseAudioHandle *>( stream_.apiHandle );
int error;
- if ( !options->streamName.empty() ) streamName = options->streamName;
+ if ( options && !options->streamName.empty() ) streamName = options->streamName;
switch ( mode ) {
case INPUT:
pa_buffer_attr buffer_attr;