summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-01-26 18:35:27 +0100
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-01-27 19:05:23 +0100
commitaeec2d5f7ec6713b6da2db062efb6f1359e9bd87 (patch)
tree7d297658d6227ff6645a26d8e02f9cbadc22f566
parent83090f65308c4938607b6651091cd74b230f6dff (diff)
rtpsession: Initialise the address pointer to NULL
-rw-r--r--gst/rtpmanager/rtpsession.c4
-rw-r--r--gst/rtpmanager/rtpstats.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c
index 74dac3885..63e91896b 100644
--- a/gst/rtpmanager/rtpsession.c
+++ b/gst/rtpmanager/rtpsession.c
@@ -1691,7 +1691,7 @@ rtp_session_process_rtp (RTPSession * sess, GstBuffer * buffer,
RTPSource *source;
gboolean created;
gboolean prevsender, prevactive;
- RTPArrivalStats arrival;
+ RTPArrivalStats arrival = { NULL, };
guint32 csrcs[16];
guint8 i, count;
guint64 oldrate;
@@ -2305,7 +2305,7 @@ rtp_session_process_rtcp (RTPSession * sess, GstBuffer * buffer,
{
GstRTCPPacket packet;
gboolean more, is_bye = FALSE, do_sync = FALSE;
- RTPArrivalStats arrival;
+ RTPArrivalStats arrival = { NULL, };
GstFlowReturn result = GST_FLOW_OK;
GstRTCPBuffer rtcp = { NULL, };
diff --git a/gst/rtpmanager/rtpstats.h b/gst/rtpmanager/rtpstats.h
index d56b4ea31..147ab1ec7 100644
--- a/gst/rtpmanager/rtpstats.h
+++ b/gst/rtpmanager/rtpstats.h
@@ -57,21 +57,20 @@ typedef struct {
/**
* RTPArrivalStats:
+ * @address: address of the sender of the packet
* @current_time: current time according to the system clock
* @running_time: arrival time of a packet as buffer running_time
* @ntpnstime: arrival time of a packet NTP time in nanoseconds
- * @have_address: if the @address field contains a valid address
- * @address: address of the sender of the packet
* @bytes: bytes of the packet including lowlevel overhead
* @payload_len: bytes of the RTP payload
*
* Structure holding information about the arrival stats of a packet.
*/
typedef struct {
+ GSocketAddress *address;
GstClockTime current_time;
GstClockTime running_time;
guint64 ntpnstime;
- GSocketAddress *address;
guint bytes;
guint payload_len;
} RTPArrivalStats;