Use pa_read, pa_write and pa_poll instead of system functions
[profile/ivi/pulseaudio-panda.git] / src / pulse / thread-mainloop.c
index d8c82c8..ef4ef56 100644 (file)
@@ -67,7 +67,7 @@ static int poll_func(struct pollfd *ufds, unsigned long nfds, int timeout, void
      * avahi_simple_poll_quit() can succeed from another thread. */
 
     pa_mutex_unlock(mutex);
-    r = poll(ufds, nfds, timeout);
+    r = pa_poll(ufds, nfds, timeout);
     pa_mutex_lock(mutex);
 
     return r;