diff options
| author | garyscavone <garyscavone@users.noreply.github.com> | 2014-11-03 13:38:30 -0500 |
|---|---|---|
| committer | garyscavone <garyscavone@users.noreply.github.com> | 2014-11-03 13:38:30 -0500 |
| commit | 626dd78364d922be62ffa2cc660a494e3b57b200 (patch) | |
| tree | 5600307925a03dd37532594149ac856d1bcc0db4 /RtAudio.cpp | |
| parent | a3ebd260521178f31baa920752386d6788122aee (diff) | |
| parent | 8408e11e5d592d2270484818286a8854f2996271 (diff) | |
Merge pull request #28 from geo-harris/master
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 0c238d5..a896e5d 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -8425,7 +8425,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;
|
