summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-01-29 18:06:29 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-02-02 16:17:43 +0100
commit2a80f4b9090a0ecfff74dc341a09b9bbb5db644c (patch)
tree5496f9191996dc2df84761023f4a11ea8e809fa6
parentbef8caaaae0e0513d94cc5a23118d3176dafc3a3 (diff)
downloadgst-vaapi-2a80f4b9090a0ecfff74dc341a09b9bbb5db644c.tar.gz
decoder: update a deprecated function
Somehow this didn't show up earlier, but gst_adapter_prev_timestamp() got deprecated since GStreamer 1.0. This patch replace it with gst_adapter_prev_pts() Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
-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);
}