summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/ecore_audio_pulse_ml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_audio/ecore_audio_pulse_ml.c')
-rw-r--r--src/lib/ecore_audio/ecore_audio_pulse_ml.c7
1 files 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 38f3d40c43..249269dc7d 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)
47 pa_io_event *event = (pa_io_event *)data; 47 pa_io_event *event = (pa_io_event *)data;
48 int fd = 0; 48 int fd = 0;
49 49
50 fd = ecore_main_fd_handler_fd_get(handler);
51 if (fd < 0) return ECORE_CALLBACK_RENEW;
52
50 if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ)) 53 if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ))
51 { 54 {
52
53 flags |= PA_IO_EVENT_INPUT; 55 flags |= PA_IO_EVENT_INPUT;
54 56
55 fd = ecore_main_fd_handler_fd_get(handler);
56 if (fd < 0) return ECORE_CALLBACK_RENEW;
57
58 /* Check for HUP and report */ 57 /* Check for HUP and report */
59 if (recv(fd, buf, 64, MSG_PEEK)) 58 if (recv(fd, buf, 64, MSG_PEEK))
60 { 59 {