srt: Fix warning error

gstsrt.c: In function ‘gst_srt_client_connect_full’:
gstsrt.c:151:6: error: ‘sock’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (sock != SRT_INVALID_SOCK) {

https://bugzilla.gnome.org/show_bug.cgi?id=791302
This commit is contained in:
Seungha Yang 2017-12-06 19:15:40 +09:00 committed by Olivier Crête
parent 236398ee3f
commit 2b39d1876e

View file

@ -39,7 +39,7 @@ gst_srt_client_connect_full (GstElement * elem, int sender,
GSocketAddress ** socket_address, gint * poll_id, gchar * passphrase,
int key_length)
{
SRTSOCKET sock;
SRTSOCKET sock = SRT_INVALID_SOCK;
GError *error = NULL;
gpointer sa;
size_t sa_len;