rtpsession: Initialise the address pointer to NULL
This commit is contained in:
parent
83090f6530
commit
aeec2d5f7e
@ -1691,7 +1691,7 @@ rtp_session_process_rtp (RTPSession * sess, GstBuffer * buffer,
|
|||||||
RTPSource *source;
|
RTPSource *source;
|
||||||
gboolean created;
|
gboolean created;
|
||||||
gboolean prevsender, prevactive;
|
gboolean prevsender, prevactive;
|
||||||
RTPArrivalStats arrival;
|
RTPArrivalStats arrival = { NULL, };
|
||||||
guint32 csrcs[16];
|
guint32 csrcs[16];
|
||||||
guint8 i, count;
|
guint8 i, count;
|
||||||
guint64 oldrate;
|
guint64 oldrate;
|
||||||
@ -2305,7 +2305,7 @@ rtp_session_process_rtcp (RTPSession * sess, GstBuffer * buffer,
|
|||||||
{
|
{
|
||||||
GstRTCPPacket packet;
|
GstRTCPPacket packet;
|
||||||
gboolean more, is_bye = FALSE, do_sync = FALSE;
|
gboolean more, is_bye = FALSE, do_sync = FALSE;
|
||||||
RTPArrivalStats arrival;
|
RTPArrivalStats arrival = { NULL, };
|
||||||
GstFlowReturn result = GST_FLOW_OK;
|
GstFlowReturn result = GST_FLOW_OK;
|
||||||
GstRTCPBuffer rtcp = { NULL, };
|
GstRTCPBuffer rtcp = { NULL, };
|
||||||
|
|
||||||
|
@ -57,21 +57,20 @@ typedef struct {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* RTPArrivalStats:
|
* RTPArrivalStats:
|
||||||
|
* @address: address of the sender of the packet
|
||||||
* @current_time: current time according to the system clock
|
* @current_time: current time according to the system clock
|
||||||
* @running_time: arrival time of a packet as buffer running_time
|
* @running_time: arrival time of a packet as buffer running_time
|
||||||
* @ntpnstime: arrival time of a packet NTP time in nanoseconds
|
* @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
|
* @bytes: bytes of the packet including lowlevel overhead
|
||||||
* @payload_len: bytes of the RTP payload
|
* @payload_len: bytes of the RTP payload
|
||||||
*
|
*
|
||||||
* Structure holding information about the arrival stats of a packet.
|
* Structure holding information about the arrival stats of a packet.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
GSocketAddress *address;
|
||||||
GstClockTime current_time;
|
GstClockTime current_time;
|
||||||
GstClockTime running_time;
|
GstClockTime running_time;
|
||||||
guint64 ntpnstime;
|
guint64 ntpnstime;
|
||||||
GSocketAddress *address;
|
|
||||||
guint bytes;
|
guint bytes;
|
||||||
guint payload_len;
|
guint payload_len;
|
||||||
} RTPArrivalStats;
|
} RTPArrivalStats;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user