mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue