mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
tests: udpsrc: fix test_udpsrc to actually run and fix locking
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
This commit is contained in:
parent
91dfc20a04
commit
45c82ee798
1 changed files with 3 additions and 1 deletions
|
@ -165,7 +165,7 @@ GST_START_TEST (test_udpsrc)
|
|||
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");
|
||||
|
@ -218,6 +218,8 @@ GST_START_TEST (test_udpsrc)
|
|||
g_list_free (buffers);
|
||||
buffers = NULL;
|
||||
|
||||
g_mutex_unlock (&check_mutex);
|
||||
|
||||
no_socket:
|
||||
send_failure:
|
||||
|
||||
|
|
Loading…
Reference in a new issue