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:
parent
236398ee3f
commit
2b39d1876e
@ -39,7 +39,7 @@ gst_srt_client_connect_full (GstElement * elem, int sender,
|
|||||||
GSocketAddress ** socket_address, gint * poll_id, gchar * passphrase,
|
GSocketAddress ** socket_address, gint * poll_id, gchar * passphrase,
|
||||||
int key_length)
|
int key_length)
|
||||||
{
|
{
|
||||||
SRTSOCKET sock;
|
SRTSOCKET sock = SRT_INVALID_SOCK;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gpointer sa;
|
gpointer sa;
|
||||||
size_t sa_len;
|
size_t sa_len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user