mfvideoenc: Fix profile string check

profile_str is not std::string. Use strcmp instead

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8405>
This commit is contained in:
Seungha Yang 2025-02-04 03:55:55 +09:00 committed by GStreamer Marge Bot
parent 73f8de3305
commit 972da9cab9

View file

@ -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);