From 972da9cab92865d4a2449d805b8befe969593999 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 4 Feb 2025 03:55:55 +0900 Subject: [PATCH] mfvideoenc: Fix profile string check profile_str is not std::string. Use strcmp instead Part-of: --- .../gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp index 890b62be6e..7c004330ce 100644 --- a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp +++ b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp @@ -1670,7 +1670,7 @@ gst_mf_video_encoder_enum_internal (GstMFTransform * transform, GUID & subtype, } /* Add "constrained-baseline" in addition to "baseline" */ - if (profile_str == "baseline") { + if (g_strcmp0 (profile_str, "baseline") == 0) { g_value_init (&profile_val, G_TYPE_STRING); g_value_set_static_string (&profile_val, "constrained-baseline"); gst_value_list_append_and_take_value (profiles, &profile_val);