diff options
| author | Harris Georgiou <har.georgiou@gmail.com> | 2014-10-16 14:12:16 +0200 |
|---|---|---|
| committer | Harris Georgiou <har.georgiou@gmail.com> | 2014-10-16 14:12:16 +0200 |
| commit | 8408e11e5d592d2270484818286a8854f2996271 (patch) | |
| tree | 015dd0c63734ef0e6fb64917212fa9b16c8c9ea7 /RtAudio.cpp | |
| parent | e2f63bd30514c7a8dc3439a681a87681ef0ad6d3 (diff) | |
Fix for NULL options in PULSE audio backend in probeDeviceOpen
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 2 |
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;
|
