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
@ -545,7 +545,7 @@ gst_goom_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||||||
GST_DEBUG_OBJECT (goom, "processing buffer");
|
GST_DEBUG_OBJECT (goom, "processing buffer");
|
||||||
|
|
||||||
/* get timestamp of the current adapter byte */
|
/* 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)) {
|
if (GST_CLOCK_TIME_IS_VALID (timestamp)) {
|
||||||
/* convert bytes to time */
|
/* convert bytes to time */
|
||||||
dist /= goom->bps;
|
dist /= goom->bps;
|
||||||
|
@ -541,7 +541,7 @@ gst_goom_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||||||
GST_DEBUG_OBJECT (goom, "processing buffer");
|
GST_DEBUG_OBJECT (goom, "processing buffer");
|
||||||
|
|
||||||
/* get timestamp of the current adapter byte */
|
/* 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)) {
|
if (GST_CLOCK_TIME_IS_VALID (timestamp)) {
|
||||||
/* convert bytes to time */
|
/* convert bytes to time */
|
||||||
dist /= goom->bps;
|
dist /= goom->bps;
|
||||||
|
@ -325,7 +325,7 @@ gst_rtp_mp4a_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
|||||||
GstClockTime timestamp;
|
GstClockTime timestamp;
|
||||||
|
|
||||||
avail = gst_adapter_available (rtpmp4adepay->adapter);
|
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);
|
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);
|
av += gst_buffer_get_size (buf);
|
||||||
gst_adapter_push (rtpmpadepay->adapter, buf);
|
gst_adapter_push (rtpmpadepay->adapter, buf);
|
||||||
if (av == size) {
|
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);
|
buf = gst_adapter_take_buffer (rtpmpadepay->adapter, size);
|
||||||
GST_BUFFER_TIMESTAMP (buf) = timestamp;
|
GST_BUFFER_TIMESTAMP (buf) = timestamp;
|
||||||
gst_rtp_mpa_robust_depay_submit_adu (rtpmpadepay, buf);
|
gst_rtp_mpa_robust_depay_submit_adu (rtpmpadepay, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user