mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
libs/gst/net/gstnetclientclock.c: Initialize variable before using. Fixes #342820.
Original commit message from CVS: * libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_start): Initialize variable before using. Fixes #342820.
This commit is contained in:
parent
651061dfd9
commit
803ecd5d58
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-05-25 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_start):
|
||||
Initialize variable before using. Fixes #342820.
|
||||
|
||||
2006-05-24 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* libs/gst/base/gsttypefindhelper.c: (buf_helper_find_peek):
|
||||
|
|
|
@ -450,12 +450,13 @@ gst_net_client_clock_start (GstNetClientClock * self)
|
|||
if (ret < 0)
|
||||
goto getsockname_error;
|
||||
|
||||
GST_DEBUG_OBJECT (self, "socket opened on UDP port %hd",
|
||||
ntohs (servaddr.sin_port));
|
||||
|
||||
memset (&servaddr, 0, sizeof (servaddr));
|
||||
servaddr.sin_family = AF_INET; /* host byte order */
|
||||
servaddr.sin_port = htons (self->port); /* short, network byte order */
|
||||
|
||||
GST_DEBUG_OBJECT (self, "socket opened on UDP port %hd",
|
||||
ntohs (servaddr.sin_port));
|
||||
|
||||
if (!inet_aton (self->address, &servaddr.sin_addr))
|
||||
goto bad_address;
|
||||
|
||||
|
|
Loading…
Reference in a new issue