mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
gst-libs/gst/rtp/gstbasertpdepayload.c: Improve debugging of the rtptime.
Original commit message from CVS: * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_chain): Improve debugging of the rtptime.
This commit is contained in:
parent
a013a6864b
commit
b86ef2dcf2
3 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-10-06 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertpdepayload.c:
|
||||
(gst_base_rtp_depayload_chain):
|
||||
Improve debugging of the rtptime.
|
||||
|
||||
2008-10-05 Jan Schmidt <jan.schmidt@sun.com>
|
||||
|
||||
* configure.ac:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 1ff63d8f92c36bf207434436f4ce75f2a4ea11a4
|
||||
Subproject commit ea93f2ed580bcc19322e4c07f677eda980c821eb
|
|
@ -258,6 +258,7 @@ gst_base_rtp_depayload_chain (GstPad * pad, GstBuffer * in)
|
|||
GstBuffer *out_buf;
|
||||
GstClockTime timestamp;
|
||||
guint16 seqnum;
|
||||
guint32 rtptime;
|
||||
gboolean reset_seq, discont;
|
||||
gint gap;
|
||||
|
||||
|
@ -280,11 +281,13 @@ gst_base_rtp_depayload_chain (GstPad * pad, GstBuffer * in)
|
|||
priv->duration = GST_BUFFER_DURATION (in);
|
||||
|
||||
seqnum = gst_rtp_buffer_get_seq (in);
|
||||
rtptime = gst_rtp_buffer_get_timestamp (in);
|
||||
reset_seq = TRUE;
|
||||
discont = FALSE;
|
||||
|
||||
GST_LOG_OBJECT (filter, "discont %d, seqnum %u, timestamp %"
|
||||
GST_TIME_FORMAT, priv->discont, seqnum, GST_TIME_ARGS (timestamp));
|
||||
GST_LOG_OBJECT (filter, "discont %d, seqnum %u, rtptime %u, timestamp %"
|
||||
GST_TIME_FORMAT, priv->discont, seqnum, rtptime,
|
||||
GST_TIME_ARGS (timestamp));
|
||||
|
||||
/* Check seqnum. This is a very simple check that makes sure that the seqnums
|
||||
* are striclty increasing, dropping anything that is out of the ordinary. We
|
||||
|
@ -333,10 +336,6 @@ gst_base_rtp_depayload_chain (GstPad * pad, GstBuffer * in)
|
|||
/* let's send it out to processing */
|
||||
out_buf = bclass->process (filter, in);
|
||||
if (out_buf) {
|
||||
guint32 rtptime;
|
||||
|
||||
rtptime = gst_rtp_buffer_get_timestamp (in);
|
||||
|
||||
/* we pass rtptime as backward compatibility, in reality, the incomming
|
||||
* buffer timestamp is always applied to the outgoing packet. */
|
||||
ret = gst_base_rtp_depayload_push_ts (filter, rtptime, out_buf);
|
||||
|
|
Loading…
Reference in a new issue