Fix for NULL options in PULSE audio backend in probeDeviceOpen
authorHarris Georgiou <har.georgiou@gmail.com>
Thu, 16 Oct 2014 12:12:16 +0000 (14:12 +0200)
committerHarris Georgiou <har.georgiou@gmail.com>
Thu, 16 Oct 2014 12:12:16 +0000 (14:12 +0200)
RtAudio.cpp

index af7d205a1977491c39e76b85affb3fc8dc332807..6ac99ce77a5ca1cf1c50b8bab96de49be6f2c9f3 100644 (file)
@@ -8424,7 +8424,7 @@ bool RtApiPulse::probeDeviceOpen( unsigned int device, StreamMode mode,
   pah = static_cast<PulseAudioHandle *>( stream_.apiHandle );\r
 \r
   int error;\r
-  if ( !options->streamName.empty() ) streamName = options->streamName;\r
+  if ( options && !options->streamName.empty() ) streamName = options->streamName;\r
   switch ( mode ) {\r
   case INPUT:\r
     pa_buffer_attr buffer_attr;\r