mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
msdkdec: Fix latency calculation
Use async_depth for latency calcuation instead of the length of Tasks array which could be NULL since we don't do the msdk decoder init in set_format().
This commit is contained in:
parent
84c33be0c0
commit
dd981d4953
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ gst_msdkdec_set_latency (GstMsdkDec * thiz)
|
|||
gint min_delayed_frames;
|
||||
GstClockTime latency;
|
||||
|
||||
min_delayed_frames = thiz->tasks->len;
|
||||
min_delayed_frames = thiz->async_depth;
|
||||
|
||||
if (info->fps_n) {
|
||||
latency = gst_util_uint64_scale_ceil (GST_SECOND * info->fps_d,
|
||||
|
|
Loading…
Reference in a new issue