mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
udpsrc: print information about bind_error socket error
In some cases, a bind error occurs during operation. Printing the information about the problem is critical for finding the conflict https://bugzilla.gnome.org/show_bug.cgi?id=797340
This commit is contained in:
parent
e736f29376
commit
827d70daee
1 changed files with 3 additions and 1 deletions
|
@ -1363,8 +1363,10 @@ gst_udpsrc_open (GstUDPSrc * src)
|
|||
|
||||
bind_saddr = g_inet_socket_address_new (bind_addr, src->port);
|
||||
g_object_unref (bind_addr);
|
||||
if (!g_socket_bind (src->used_socket, bind_saddr, src->reuse, &err))
|
||||
if (!g_socket_bind (src->used_socket, bind_saddr, src->reuse, &err)) {
|
||||
GST_ERROR_OBJECT (src, "%s: error binding to %s:%d", err->message, src->address, src->port);
|
||||
goto bind_error;
|
||||
}
|
||||
|
||||
g_object_unref (bind_saddr);
|
||||
g_socket_set_multicast_loopback (src->used_socket, src->loop);
|
||||
|
|
Loading…
Reference in a new issue