Previously this would silently be skipped because 1600 != 1400
and there is no assertion on this call.
Also unlock check_mutex after use.
https://bugzilla.gnome.org/show_bug.cgi?id=786799
if (g_socket_send_to (socket, sa, data, 1600, NULL, NULL) != 1600)
goto send_failure;
- if (g_socket_send_to (socket, sa, data, 1600, NULL, NULL) != 1400)
+ if (g_socket_send_to (socket, sa, data, 1400, NULL, NULL) != 1400)
goto send_failure;
GST_INFO ("sent some packets");
g_list_free (buffers);
buffers = NULL;
+ g_mutex_unlock (&check_mutex);
+
no_socket:
send_failure: