[xiph-commits] r17358 - trunk/ao/src/plugins/sndio

tterribe at svn.xiph.org tterribe at svn.xiph.org
Tue Aug 3 14:44:58 PDT 2010


Author: tterribe
Date: 2010-08-03 14:44:58 -0700 (Tue, 03 Aug 2010)
New Revision: 17358

Modified:
   trunk/ao/src/plugins/sndio/ao_sndio.c
Log:
Fix ao_sndio plugin compilation (#1715).
Patch from Philipp 'ph3-der-loewe' Schafft <lion at lion.leolix.org>.
I don't have an OpenBSD machine, so I can't even tell if this compiles, but it
 certainly didn't compile before.


Modified: trunk/ao/src/plugins/sndio/ao_sndio.c
===================================================================
--- trunk/ao/src/plugins/sndio/ao_sndio.c	2010-08-03 21:38:56 UTC (rev 17357)
+++ trunk/ao/src/plugins/sndio/ao_sndio.c	2010-08-03 21:44:58 UTC (rev 17358)
@@ -37,7 +37,7 @@
   4
 };
 
-typedef struct ao_alsa_internal
+typedef struct ao_sndio_internal
 {
   struct sio_hdl *hdl;
   char *dev;
@@ -100,10 +100,10 @@
   par.bits = format->bits;
   par.rate = format->rate;
   par.pchan = device->output_channels;
-  if (!sio_setpar(hdl, &par))
+  if (!sio_setpar(internal->hdl, &par))
     return 0;
   device->driver_byte_format = AO_FMT_NATIVE;
-  if (!sio_start(hdl))
+  if (!sio_start(internal->hdl))
     return 0;
 
   if(!device->inter_matrix){



More information about the commits mailing list