From 9fbf4f9c10aa80841296f9b087cd8823f055e08b Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 26 Mar 2022 22:24:27 +0900 Subject: [PATCH] mfvideoenc: Remove redundant bitwise or operation MFT_ENUM_FLAG_SORTANDFILTER_APPROVED_ONLY (0xc0) covers MFT_ENUM_FLAG_SORTANDFILTER (0x40) Part-of: --- .../gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp index e2fa7eb4ae..e318359534 100644 --- a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp +++ b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp @@ -1925,7 +1925,7 @@ gst_mf_video_encoder_register (GstPlugin * plugin, guint rank, GUID * subtype, /* register hardware encoders first */ enum_flags = (MFT_ENUM_FLAG_HARDWARE | MFT_ENUM_FLAG_ASYNCMFT | - MFT_ENUM_FLAG_SORTANDFILTER | MFT_ENUM_FLAG_SORTANDFILTER_APPROVED_ONLY); + MFT_ENUM_FLAG_SORTANDFILTER_APPROVED_ONLY); if (d3d11_device) { GList *iter; @@ -1979,7 +1979,7 @@ gst_mf_video_encoder_register (GstPlugin * plugin, guint rank, GUID * subtype, /* register software encoders */ enum_flags = (MFT_ENUM_FLAG_SYNCMFT | - MFT_ENUM_FLAG_SORTANDFILTER | MFT_ENUM_FLAG_SORTANDFILTER_APPROVED_ONLY); + MFT_ENUM_FLAG_SORTANDFILTER_APPROVED_ONLY); transform = gst_mf_video_encoder_enum (enum_flags, subtype, 0, &device_caps, nullptr, &sink_template, &src_template);