mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
msdkvpp: don't update pads' info if nothing have changed
This commit is contained in:
parent
e91a53f693
commit
e8d2f58e23
1 changed files with 3 additions and 3 deletions
|
@ -1031,6 +1031,9 @@ gst_msdkvpp_set_caps (GstBaseTransform * trans, GstCaps * caps,
|
||||||
if (!gst_video_info_is_equal (&out_info, &thiz->srcpad_info))
|
if (!gst_video_info_is_equal (&out_info, &thiz->srcpad_info))
|
||||||
srcpad_info_changed = TRUE;
|
srcpad_info_changed = TRUE;
|
||||||
|
|
||||||
|
if (!sinkpad_info_changed && !srcpad_info_changed && thiz->initialized)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
thiz->sinkpad_info = in_info;
|
thiz->sinkpad_info = in_info;
|
||||||
thiz->srcpad_info = out_info;
|
thiz->srcpad_info = out_info;
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
@ -1039,9 +1042,6 @@ gst_msdkvpp_set_caps (GstBaseTransform * trans, GstCaps * caps,
|
||||||
thiz->use_video_memory = FALSE;
|
thiz->use_video_memory = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!sinkpad_info_changed && !srcpad_info_changed && thiz->initialized)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
/* check for deinterlace requirement */
|
/* check for deinterlace requirement */
|
||||||
deinterlace = gst_msdkvpp_is_deinterlace_enabled (thiz, &in_info);
|
deinterlace = gst_msdkvpp_is_deinterlace_enabled (thiz, &in_info);
|
||||||
if (deinterlace)
|
if (deinterlace)
|
||||||
|
|
Loading…
Reference in a new issue