mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
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>
This commit is contained in:
parent
bef8caaaae
commit
2a80f4b909
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue