packages: audacity/portaudio_asihpi_406.patch - fix for asihpi segfault (...

sls sls at pld-linux.org
Sat Oct 15 13:06:56 CEST 2011


Author: sls                          Date: Sat Oct 15 11:06:56 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- 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 ];)
  )

---- Files affected:
packages/audacity:
   portaudio_asihpi_406.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/audacity/portaudio_asihpi_406.patch
diff -u packages/audacity/portaudio_asihpi_406.patch:1.1 packages/audacity/portaudio_asihpi_406.patch:1.2
--- packages/audacity/portaudio_asihpi_406.patch:1.1	Mon May  9 19:01:35 2011
+++ packages/audacity/portaudio_asihpi_406.patch	Sat Oct 15 13:06:51 2011
@@ -268,7 +268,7 @@
                  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 @@
      {
          /* 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
      {
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/audacity/portaudio_asihpi_406.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list