mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 07:02:53 +00:00
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:
parent
73f8de3305
commit
972da9cab9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue