summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2018-12-19 10:44:50 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2019-01-08 10:08:43 +0800
commite8d2f58e23f9b2908b2d7e66ba43cf6405fcc224 (patch)
tree5fb978bde74f9740bc0ff7b0fc85b8678d2733ae /sys
parente91a53f69360290c47d00d999da8869d3622143a (diff)
downloadgstreamer-plugins-bad-e8d2f58e23f9b2908b2d7e66ba43cf6405fcc224.tar.gz
msdkvpp: don't update pads' info if nothing have changed
Diffstat (limited to 'sys')
-rw-r--r--sys/msdk/gstmsdkvpp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c
index d6fe05610..f52956544 100644
--- a/sys/msdk/gstmsdkvpp.c
+++ b/sys/msdk/gstmsdkvpp.c
@@ -1031,6 +1031,9 @@ gst_msdkvpp_set_caps (GstBaseTransform * trans, GstCaps * caps,
if (!gst_video_info_is_equal (&out_info, &thiz->srcpad_info))
srcpad_info_changed = TRUE;
+ if (!sinkpad_info_changed && !srcpad_info_changed && thiz->initialized)
+ return TRUE;
+
thiz->sinkpad_info = in_info;
thiz->srcpad_info = out_info;
#ifndef _WIN32
@@ -1039,9 +1042,6 @@ gst_msdkvpp_set_caps (GstBaseTransform * trans, GstCaps * caps,
thiz->use_video_memory = FALSE;
#endif
- if (!sinkpad_info_changed && !srcpad_info_changed && thiz->initialized)
- return TRUE;
-
/* check for deinterlace requirement */
deinterlace = gst_msdkvpp_is_deinterlace_enabled (thiz, &in_info);
if (deinterlace)