g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
-
g_mutex_lock (&((GstPoll *) set)->lock);
idx = find_index (set->active_fds, fd);
} else {
GST_WARNING ("%p: couldn't find fd !", set);
}
-
g_mutex_unlock (&((GstPoll *) set)->lock);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d) %d", set, fd->fd, fd->idx, res);
+
return res;
}
g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
-
g_mutex_lock (&((GstPoll *) set)->lock);
idx = find_index (set->active_fds, fd);
} else {
GST_WARNING ("%p: couldn't find fd !", set);
}
-
g_mutex_unlock (&((GstPoll *) set)->lock);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d) %d", set, fd->fd, fd->idx, res);
+
return res;
}
gboolean res = FALSE;
gint idx;
- GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
-
idx = find_index (set->active_fds, fd);
if (idx >= 0) {
#ifndef G_OS_WIN32
} else {
GST_WARNING ("%p: couldn't find fd !", set);
}
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d) %d", set, fd->fd, fd->idx, res);
return res;
}
g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
-
g_mutex_lock (&((GstPoll *) set)->lock);
idx = find_index (set->active_fds, fd);
} else {
GST_WARNING ("%p: couldn't find fd !", set);
}
-
g_mutex_unlock (&((GstPoll *) set)->lock);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d) %d", set, fd->fd, fd->idx, res);
+
return res;
}