summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c
index 2c9ccbee..c4858ab5 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder.c
@@ -332,8 +332,7 @@ decode_step (GstVaapiDecoder * decoder)
input_size -= got_unit_size;
if (gst_adapter_available (ps->output_adapter) == 0) {
- ps->current_frame->pts =
- gst_adapter_prev_timestamp (ps->input_adapter, NULL);
+ ps->current_frame->pts = gst_adapter_prev_pts (ps->input_adapter, NULL);
}
gst_adapter_push (ps->output_adapter, buffer);
}