mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpmanager: Initialize GstRTPBuffer before usage
This commit is contained in:
parent
04520cbe9a
commit
86a57e3546
5 changed files with 11 additions and 11 deletions
|
@ -304,7 +304,7 @@ gst_rtp_pt_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
GstPad *srcpad;
|
||||
GstRtpPtDemuxPad *rtpdemuxpad;
|
||||
GstCaps *caps;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = {NULL};
|
||||
|
||||
rtpdemux = GST_RTP_PT_DEMUX (parent);
|
||||
|
||||
|
|
|
@ -509,7 +509,7 @@ gst_rtp_ssrc_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
GstRtpSsrcDemux *demux;
|
||||
guint32 ssrc;
|
||||
GstRtpSsrcDemuxPad *dpad;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = {NULL};
|
||||
GstPad *srcpad;
|
||||
|
||||
demux = GST_RTP_SSRC_DEMUX (parent);
|
||||
|
|
|
@ -608,7 +608,7 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf,
|
|||
GList *list;
|
||||
guint32 rtptime;
|
||||
guint16 seqnum;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = {NULL};
|
||||
|
||||
g_return_val_if_fail (jbuf != NULL, FALSE);
|
||||
g_return_val_if_fail (buf != NULL, FALSE);
|
||||
|
@ -621,7 +621,7 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf,
|
|||
for (list = jbuf->packets->head; list; list = g_list_next (list)) {
|
||||
guint16 qseq;
|
||||
gint gap;
|
||||
GstRTPBuffer rtpb;
|
||||
GstRTPBuffer rtpb = {NULL};
|
||||
|
||||
gst_rtp_buffer_map (GST_BUFFER_CAST (list->data), GST_MAP_READ, &rtpb);
|
||||
qseq = gst_rtp_buffer_get_seq (&rtpb);
|
||||
|
@ -863,7 +863,7 @@ rtp_jitter_buffer_get_ts_diff (RTPJitterBuffer * jbuf)
|
|||
guint64 high_ts, low_ts;
|
||||
GstBuffer *high_buf, *low_buf;
|
||||
guint32 result;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = {NULL};
|
||||
|
||||
g_return_val_if_fail (jbuf != NULL, 0);
|
||||
|
||||
|
|
|
@ -1696,7 +1696,7 @@ update_arrival_stats (RTPSession * sess, RTPArrivalStats * arrival,
|
|||
GstClockTime running_time, guint64 ntpnstime)
|
||||
{
|
||||
GstNetAddressMeta *meta;
|
||||
GstRTPBuffer rtpb;
|
||||
GstRTPBuffer rtpb = { NULL };
|
||||
|
||||
/* get time of arrival */
|
||||
arrival->current_time = current_time;
|
||||
|
@ -1749,7 +1749,7 @@ rtp_session_process_rtp (RTPSession * sess, GstBuffer * buffer,
|
|||
guint32 csrcs[16];
|
||||
guint8 i, count;
|
||||
guint64 oldrate;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = { NULL };
|
||||
|
||||
g_return_val_if_fail (RTP_IS_SESSION (sess), GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (GST_IS_BUFFER (buffer), GST_FLOW_ERROR);
|
||||
|
|
|
@ -897,7 +897,7 @@ calculate_jitter (RTPSource * src, GstBuffer * buffer,
|
|||
gint32 diff;
|
||||
gint clock_rate;
|
||||
guint8 pt;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = { NULL };
|
||||
|
||||
/* get arrival time */
|
||||
if ((running_time = arrival->running_time) == GST_CLOCK_TIME_NONE)
|
||||
|
@ -1026,7 +1026,7 @@ rtp_source_process_rtp (RTPSource * src, GstBuffer * buffer,
|
|||
guint16 seqnr, udelta;
|
||||
RTPSourceStats *stats;
|
||||
guint16 expected;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = { NULL };
|
||||
|
||||
g_return_val_if_fail (RTP_IS_SOURCE (src), GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (GST_IS_BUFFER (buffer), GST_FLOW_ERROR);
|
||||
|
@ -1171,7 +1171,7 @@ rtp_source_process_bye (RTPSource * src, const gchar * reason)
|
|||
static gboolean
|
||||
set_ssrc (GstBuffer ** buffer, guint idx, RTPSource * src)
|
||||
{
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = { NULL };
|
||||
|
||||
*buffer = gst_buffer_make_writable (*buffer);
|
||||
gst_rtp_buffer_map (*buffer, GST_MAP_WRITE, &rtp);
|
||||
|
@ -1206,7 +1206,7 @@ rtp_source_send_rtp (RTPSource * src, gpointer data, gboolean is_list,
|
|||
GstBuffer *buffer = NULL;
|
||||
guint packets;
|
||||
guint32 ssrc;
|
||||
GstRTPBuffer rtp;
|
||||
GstRTPBuffer rtp = { NULL };
|
||||
|
||||
g_return_val_if_fail (RTP_IS_SOURCE (src), GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (is_list || GST_IS_BUFFER (data), GST_FLOW_ERROR);
|
||||
|
|
Loading…
Reference in a new issue