multiudpsink: Allow setting "socket-v6" without setting "socket" too

https://bugzilla.gnome.org/show_bug.cgi?id=764897
This commit is contained in:
Mats Lindestam 2016-04-25 15:03:14 +02:00 committed by Sebastian Dröge
parent 8740313504
commit 63c284c24e

View file

@ -1311,7 +1311,7 @@ gst_multiudpsink_start (GstBaseSink * bsink)
if (sink->socket_v6) {
GST_DEBUG_OBJECT (sink, "using configured IPv6 socket");
g_return_val_if_fail (g_socket_get_family (sink->socket) !=
g_return_val_if_fail (!sink->socket || g_socket_get_family (sink->socket) !=
G_SOCKET_FAMILY_IPV6, FALSE);
if (sink->used_socket_v6 && sink->used_socket_v6 != sink->socket_v6) {