mfvideoenc: Remove redundant bitwise or operation

MFT_ENUM_FLAG_SORTANDFILTER_APPROVED_ONLY (0xc0) covers
MFT_ENUM_FLAG_SORTANDFILTER (0x40)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2037>
This commit is contained in:
Seungha Yang 2022-03-26 22:24:27 +09:00
parent 442d21ab2a
commit 9fbf4f9c10

View file

@ -1925,7 +1925,7 @@ gst_mf_video_encoder_register (GstPlugin * plugin, guint rank, GUID * subtype,
/* register hardware encoders first */ /* register hardware encoders first */
enum_flags = (MFT_ENUM_FLAG_HARDWARE | MFT_ENUM_FLAG_ASYNCMFT | 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) { if (d3d11_device) {
GList *iter; GList *iter;
@ -1979,7 +1979,7 @@ gst_mf_video_encoder_register (GstPlugin * plugin, guint rank, GUID * subtype,
/* register software encoders */ /* register software encoders */
enum_flags = (MFT_ENUM_FLAG_SYNCMFT | 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, transform = gst_mf_video_encoder_enum (enum_flags, subtype, 0, &device_caps,
nullptr, &sink_template, &src_template); nullptr, &sink_template, &src_template);