]> git.pld-linux.org Git - packages/audacity.git/commitdiff
- fix for asihpi segfault
authorSzymon Siwek <sls@pld-linux.org>
Sat, 15 Oct 2011 11:06:51 +0000 (11:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (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

index 60456099dcaccf1d766891059fb44dbe0b919513..9c2d8b5da94a4c65807f9d7f12bef04f0a7cbd98 100644 (file)
@@ -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
      {
This page took 0.027179 seconds and 4 git commands to generate.