mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst_adapter_prev_timestamp -> gst_adapter_prev_pts
https://bugzilla.gnome.org/show_bug.cgi?id=675598
This commit is contained in:
parent
673d2d24b8
commit
bdf3c77828
4 changed files with 4 additions and 4 deletions
|
@ -545,7 +545,7 @@ gst_goom_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
GST_DEBUG_OBJECT (goom, "processing buffer");
|
||||
|
||||
/* get timestamp of the current adapter byte */
|
||||
timestamp = gst_adapter_prev_timestamp (goom->adapter, &dist);
|
||||
timestamp = gst_adapter_prev_pts (goom->adapter, &dist);
|
||||
if (GST_CLOCK_TIME_IS_VALID (timestamp)) {
|
||||
/* convert bytes to time */
|
||||
dist /= goom->bps;
|
||||
|
|
|
@ -541,7 +541,7 @@ gst_goom_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
GST_DEBUG_OBJECT (goom, "processing buffer");
|
||||
|
||||
/* get timestamp of the current adapter byte */
|
||||
timestamp = gst_adapter_prev_timestamp (goom->adapter, &dist);
|
||||
timestamp = gst_adapter_prev_pts (goom->adapter, &dist);
|
||||
if (GST_CLOCK_TIME_IS_VALID (timestamp)) {
|
||||
/* convert bytes to time */
|
||||
dist /= goom->bps;
|
||||
|
|
|
@ -325,7 +325,7 @@ gst_rtp_mp4a_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
|||
GstClockTime timestamp;
|
||||
|
||||
avail = gst_adapter_available (rtpmp4adepay->adapter);
|
||||
timestamp = gst_adapter_prev_timestamp (rtpmp4adepay->adapter, NULL);
|
||||
timestamp = gst_adapter_prev_pts (rtpmp4adepay->adapter, NULL);
|
||||
|
||||
GST_LOG_OBJECT (rtpmp4adepay, "have marker and %u available", avail);
|
||||
|
||||
|
|
|
@ -716,7 +716,7 @@ gst_rtp_mpa_robust_depay_process (GstRTPBaseDepayload * depayload,
|
|||
av += gst_buffer_get_size (buf);
|
||||
gst_adapter_push (rtpmpadepay->adapter, buf);
|
||||
if (av == size) {
|
||||
timestamp = gst_adapter_prev_timestamp (rtpmpadepay->adapter, NULL);
|
||||
timestamp = gst_adapter_prev_pts (rtpmpadepay->adapter, NULL);
|
||||
buf = gst_adapter_take_buffer (rtpmpadepay->adapter, size);
|
||||
GST_BUFFER_TIMESTAMP (buf) = timestamp;
|
||||
gst_rtp_mpa_robust_depay_submit_adu (rtpmpadepay, buf);
|
||||
|
|
Loading…
Reference in a new issue