sys_error:
{
+ GST_ERROR ("system error %d (%s)", errno, g_strerror (errno));
if (conn->fd.fd >= 0) {
+ GST_DEBUG ("remove fd %d", conn->fd.fd);
gst_poll_remove_fd (conn->fdset, &conn->fd);
conn->fd.fd = -1;
}
}
not_resolved:
{
+ GST_ERROR ("could not resolve %s", url->host);
return GST_RTSP_ENET;
}
not_ip:
{
+ GST_ERROR ("not an IP address");
return GST_RTSP_ENOTIP;
}
timeout:
{
+ GST_ERROR ("timeout");
if (conn->fd.fd >= 0) {
+ GST_DEBUG ("remove fd %d", conn->fd.fd);
gst_poll_remove_fd (conn->fdset, &conn->fd);
conn->fd.fd = -1;
}
g_return_val_if_fail (conn != NULL, GST_RTSP_EINVAL);
g_return_val_if_fail (data != NULL || size == 0, GST_RTSP_EINVAL);
+ g_return_val_if_fail (conn->fd.fd >= 0, GST_RTSP_EINVAL);
gst_poll_set_controllable (conn->fdset, TRUE);
gst_poll_fd_ctl_write (conn->fdset, &conn->fd, TRUE);
g_return_val_if_fail (conn != NULL, GST_RTSP_EINVAL);
g_return_val_if_fail (data != NULL, GST_RTSP_EINVAL);
+ g_return_val_if_fail (conn->fd.fd >= 0, GST_RTSP_EINVAL);
if (size == 0)
return GST_RTSP_OK;
g_return_val_if_fail (conn != NULL, GST_RTSP_EINVAL);
g_return_val_if_fail (events != 0, GST_RTSP_EINVAL);
g_return_val_if_fail (revents != NULL, GST_RTSP_EINVAL);
+ g_return_val_if_fail (conn->fd.fd >= 0, GST_RTSP_EINVAL);
gst_poll_set_controllable (conn->fdset, TRUE);
*
* Retrieve the IP address of the other end of @conn.
*
- * Returns: The IP address as a string.
+ * Returns: The IP address as a string. this value remains valid until the
+ * connection is closed.
*
* Since: 0.10.20
*/