summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2018-07-03 18:38:04 -0800
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2018-07-03 18:38:04 -0800
commitdd981d4953af34fa343ef0c98a9503936783428d (patch)
tree4c27cad63979d8d92eae6577d5d574309fc6bedd /sys
parent84c33be0c03a1521a332ccf2526076b24d8503a1 (diff)
downloadgstreamer-plugins-bad-dd981d4953af34fa343ef0c98a9503936783428d.tar.gz
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().
Diffstat (limited to 'sys')
-rw-r--r--sys/msdk/gstmsdkdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/msdk/gstmsdkdec.c b/sys/msdk/gstmsdkdec.c
index e00f7344c..922ea54f6 100644
--- a/sys/msdk/gstmsdkdec.c
+++ b/sys/msdk/gstmsdkdec.c
@@ -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,