mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst_adapter_prev_timestamp -> gst_adapter_prev_pts
This commit is contained in:
parent
67e11c7ad9
commit
37ce97a6e0
1 changed files with 3 additions and 4 deletions
|
@ -391,7 +391,7 @@ gst_ffmpegaudenc_encode_audio (GstFFMpegAudEnc * ffmpegaudenc,
|
|||
gst_buffer_unmap (outbuf, &map);
|
||||
gst_buffer_resize (outbuf, 0, res);
|
||||
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
|
||||
GST_BUFFER_PTS (outbuf) = timestamp;
|
||||
GST_BUFFER_DURATION (outbuf) = duration;
|
||||
if (discont)
|
||||
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
|
||||
|
@ -428,7 +428,7 @@ gst_ffmpegaudenc_chain_audio (GstPad * pad, GstObject * parent,
|
|||
ctx = ffmpegaudenc->context;
|
||||
|
||||
size = gst_buffer_get_size (inbuf);
|
||||
timestamp = GST_BUFFER_TIMESTAMP (inbuf);
|
||||
timestamp = GST_BUFFER_PTS (inbuf);
|
||||
duration = GST_BUFFER_DURATION (inbuf);
|
||||
discont = GST_BUFFER_IS_DISCONT (inbuf);
|
||||
|
||||
|
@ -475,8 +475,7 @@ gst_ffmpegaudenc_chain_audio (GstPad * pad, GstObject * parent,
|
|||
* forego some timestamp perfection in favour of upstream syncing
|
||||
* (particularly in case these do not happen to come in multiple
|
||||
* of frame size) */
|
||||
upstream_time =
|
||||
gst_adapter_prev_timestamp (ffmpegaudenc->adapter, &bytes);
|
||||
upstream_time = gst_adapter_prev_pts (ffmpegaudenc->adapter, &bytes);
|
||||
if (GST_CLOCK_TIME_IS_VALID (upstream_time)) {
|
||||
GstClockTimeDiff diff;
|
||||
|
||||
|
|
Loading…
Reference in a new issue