mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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>
|
2008-10-05 Jan Schmidt <jan.schmidt@sun.com>
|
||||||
|
|
||||||
* configure.ac:
|
* 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;
|
GstBuffer *out_buf;
|
||||||
GstClockTime timestamp;
|
GstClockTime timestamp;
|
||||||
guint16 seqnum;
|
guint16 seqnum;
|
||||||
|
guint32 rtptime;
|
||||||
gboolean reset_seq, discont;
|
gboolean reset_seq, discont;
|
||||||
gint gap;
|
gint gap;
|
||||||
|
|
||||||
|
@ -280,11 +281,13 @@ gst_base_rtp_depayload_chain (GstPad * pad, GstBuffer * in)
|
||||||
priv->duration = GST_BUFFER_DURATION (in);
|
priv->duration = GST_BUFFER_DURATION (in);
|
||||||
|
|
||||||
seqnum = gst_rtp_buffer_get_seq (in);
|
seqnum = gst_rtp_buffer_get_seq (in);
|
||||||
|
rtptime = gst_rtp_buffer_get_timestamp (in);
|
||||||
reset_seq = TRUE;
|
reset_seq = TRUE;
|
||||||
discont = FALSE;
|
discont = FALSE;
|
||||||
|
|
||||||
GST_LOG_OBJECT (filter, "discont %d, seqnum %u, timestamp %"
|
GST_LOG_OBJECT (filter, "discont %d, seqnum %u, rtptime %u, timestamp %"
|
||||||
GST_TIME_FORMAT, priv->discont, seqnum, GST_TIME_ARGS (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
|
/* 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
|
* 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 */
|
/* let's send it out to processing */
|
||||||
out_buf = bclass->process (filter, in);
|
out_buf = bclass->process (filter, in);
|
||||||
if (out_buf) {
|
if (out_buf) {
|
||||||
guint32 rtptime;
|
|
||||||
|
|
||||||
rtptime = gst_rtp_buffer_get_timestamp (in);
|
|
||||||
|
|
||||||
/* we pass rtptime as backward compatibility, in reality, the incomming
|
/* we pass rtptime as backward compatibility, in reality, the incomming
|
||||||
* buffer timestamp is always applied to the outgoing packet. */
|
* buffer timestamp is always applied to the outgoing packet. */
|
||||||
ret = gst_base_rtp_depayload_push_ts (filter, rtptime, out_buf);
|
ret = gst_base_rtp_depayload_push_ts (filter, rtptime, out_buf);
|
||||||
|
|
Loading…
Reference in a new issue