From: Sreerenj Balachandran Date: Wed, 6 Jun 2018 01:01:13 +0000 (-0800) Subject: msdk: vpp: fix the filter count in mfxExtVPPDoUse X-Git-Tag: 1.19.3~507^2~4136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c7a457669de948498ed64fe1a0f9bee07faed55;p=platform%2Fupstream%2Fgstreamer.git msdk: vpp: fix the filter count in mfxExtVPPDoUse Repostion the mfxExtVPPDoUse enabling code so that it will get the filter algorithm count correctly. --- diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index 5391107..dae1c4d 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -830,16 +830,6 @@ ensure_filters (GstMsdkVPP * thiz) n_filters++; } - /* mfxExtVPPDoUse */ - if (n_filters) { - mfxExtVPPDoUse *mfx_vpp_douse = &thiz->mfx_vpp_douse; - mfx_vpp_douse->Header.BufferId = MFX_EXTBUFF_VPP_DOUSE; - mfx_vpp_douse->Header.BufferSz = sizeof (mfxExtVPPDoUse); - mfx_vpp_douse->NumAlg = n_filters; - mfx_vpp_douse->AlgList = thiz->max_filter_algorithms; - gst_msdkvpp_add_extra_param (thiz, (mfxExtBuffer *) mfx_vpp_douse); - } - /* Mirroring */ if (thiz->flags & GST_MSDK_FLAG_MIRRORING) { mfxExtVPPMirroring *mfx_mirroring = &thiz->mfx_mirroring; @@ -873,6 +863,16 @@ ensure_filters (GstMsdkVPP * thiz) MFX_EXTBUFF_VPP_FRAME_RATE_CONVERSION; n_filters++; } + + /* mfxExtVPPDoUse */ + if (n_filters) { + mfxExtVPPDoUse *mfx_vpp_douse = &thiz->mfx_vpp_douse; + mfx_vpp_douse->Header.BufferId = MFX_EXTBUFF_VPP_DOUSE; + mfx_vpp_douse->Header.BufferSz = sizeof (mfxExtVPPDoUse); + mfx_vpp_douse->NumAlg = n_filters; + mfx_vpp_douse->AlgList = thiz->max_filter_algorithms; + gst_msdkvpp_add_extra_param (thiz, (mfxExtBuffer *) mfx_vpp_douse); + } } static void