decoder: update a deprecated function
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 29 Jan 2016 17:06:29 +0000 (18:06 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 2 Feb 2016 15:17:43 +0000 (16:17 +0100)
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>
gst-libs/gst/vaapi/gstvaapidecoder.c

index 2c9ccbe..c4858ab 100644 (file)
@@ -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);
     }