From 8408e11e5d592d2270484818286a8854f2996271 Mon Sep 17 00:00:00 2001 From: Harris Georgiou Date: Thu, 16 Oct 2014 14:12:16 +0200 Subject: Fix for NULL options in PULSE audio backend in probeDeviceOpen --- RtAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RtAudio.cpp') 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( 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; -- cgit v1.2.3