devilhorns pushed a commit to branch master.
commit 5be999e0f564fc071268330f0981ea11779f22de
Author: Chris Michael <[email protected]>
Date: Tue Aug 6 09:47:08 2013 +0100
Get the 'fd' from the handler First (regardless of read or write) so
that it can be used in the below event callback.
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/ecore_audio/ecore_audio_pulse_ml.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/lib/ecore_audio/ecore_audio_pulse_ml.c
b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
index 38f3d40..249269d 100644
--- a/src/lib/ecore_audio/ecore_audio_pulse_ml.c
+++ b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
@@ -47,14 +47,13 @@ _ecore_io_wrapper(void *data, Ecore_Fd_Handler *handler)
pa_io_event *event = (pa_io_event *)data;
int fd = 0;
+ fd = ecore_main_fd_handler_fd_get(handler);
+ if (fd < 0) return ECORE_CALLBACK_RENEW;
+
if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ))
{
-
flags |= PA_IO_EVENT_INPUT;
- fd = ecore_main_fd_handler_fd_get(handler);
- if (fd < 0) return ECORE_CALLBACK_RENEW;
-
/* Check for HUP and report */
if (recv(fd, buf, 64, MSG_PEEK))
{
--
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk