From 046e67a43c3cc5281c2a2d626f8f7b8993c6bfcf Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Sat, 15 Oct 2011 11:06:51 +0000 Subject: [PATCH] - fix for asihpi segfault (if there's no hpi card we've got: Program received signal SIGSEGV, Segmentation fault. 0x000000000080550f in Terminate (hostApi=0xe067a0) at src/hostapi/asihpi/pa_linux_asihpi.c:817 817 PaAsiHpiDeviceInfo *hpiDevice = (PaAsiHpiDeviceInfo *) hostApi->deviceInfos[ i ];) ) Changed files: portaudio_asihpi_406.patch -> 1.2 --- portaudio_asihpi_406.patch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/portaudio_asihpi_406.patch b/portaudio_asihpi_406.patch index 6045609..9c2d8b5 100644 --- a/portaudio_asihpi_406.patch +++ b/portaudio_asihpi_406.patch @@ -268,7 +268,7 @@ Index: src/hostapi/asihpi/pa_linux_asihpi.c hpiDevice->adapterType = type; hpiDevice->adapterVersion = version; hpiDevice->adapterSerialNumber = serial; -@@ -746,10 +737,9 @@ +@@ -746,25 +737,24 @@ PA_UNLESS_( hpiHostApi->allocations = PaUtil_CreateAllocationGroup(), paInsufficientMemory ); hpiHostApi->hostApiIndex = hostApiIndex; @@ -280,7 +280,12 @@ Index: src/hostapi/asihpi/pa_linux_asihpi.c { /* the V19 development docs say that if an implementation * detects that it cannot be used, it should return a NULL -@@ -761,10 +751,10 @@ + * interface and paNoError */ + PA_DEBUG(( "Could not open HPI interface\n" )); + result = paNoError; +- *hostApi = NULL; ++ hpiHostApi = NULL; + goto error; } else { -- 2.44.0