{
g_return_if_fail (set != NULL);
- GST_DEBUG_OBJECT (set, "Freeing");
+ GST_DEBUG ("%p: freeing", set);
#ifndef G_OS_WIN32
if (set->control_write_fd.fd >= 0)
{
gint idx;
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d)", fd->fd, fd->idx);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
idx = find_index (set->fds, fd);
if (idx < 0) {
fd->idx = set->fds->len - 1;
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
return TRUE;
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d)", fd->fd, fd->idx);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
g_mutex_lock (set->lock);
/* mark fd as removed by setting the index to -1 */
fd->idx = -1;
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
g_mutex_unlock (set->lock);
g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d), active : %d",
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d), active : %d", set,
fd->fd, fd->idx, active);
g_mutex_lock (set->lock);
active);
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
g_mutex_unlock (set->lock);
{
gint idx;
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d), active : %d",
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d), active : %d", set,
fd->fd, fd->idx, active);
idx = find_index (set->fds, fd);
gst_poll_update_winsock_event_mask (set, idx, FD_READ | FD_ACCEPT, active);
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
return idx >= 0;
g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d)", fd->fd, fd->idx);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
g_mutex_lock (set->lock);
res = (wfd->events.lNetworkEvents & FD_CLOSE) != 0;
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
g_mutex_unlock (set->lock);
g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d)", fd->fd, fd->idx);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
g_mutex_lock (set->lock);
(wfd->events.iErrorCode[FD_CONNECT_BIT] != 0);
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
g_mutex_unlock (set->lock);
gboolean res = FALSE;
gint idx;
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d)", fd->fd, fd->idx);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
idx = find_index (set->active_fds, fd);
if (idx >= 0) {
res = (wfd->events.lNetworkEvents & (FD_READ | FD_ACCEPT)) != 0;
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
return res;
g_return_val_if_fail (fd != NULL, FALSE);
g_return_val_if_fail (fd->fd >= 0, FALSE);
- GST_DEBUG_OBJECT (set, "fd (fd:%d, idx:%d)", fd->fd, fd->idx);
+ GST_DEBUG ("%p: fd (fd:%d, idx:%d)", set, fd->fd, fd->idx);
g_mutex_lock (set->lock);
res = (wfd->events.lNetworkEvents & FD_WRITE) != 0;
#endif
} else {
- GST_WARNING_OBJECT (set, "Couldn't find fd !");
+ GST_WARNING ("%p: couldn't find fd !", set);
}
g_mutex_unlock (set->lock);
{
g_return_val_if_fail (set != NULL, FALSE);
- GST_LOG_OBJECT (set, "controllable : %d", controllable);
+ GST_LOG ("%p: controllable : %d", set, controllable);
g_mutex_lock (set->lock);
#ifndef G_OS_WIN32
no_socket_pair:
{
- GST_WARNING_OBJECT (set, "Can't create socket pair !");
+ GST_WARNING ("%p: can't create socket pair !", set);
g_mutex_unlock (set->lock);
return FALSE;
}