mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
kmssink: Accept underscore in property
Otherwise sdi_mode and similar properties would be canonicalised to sdi-mode.
This commit is contained in:
parent
cbff147f71
commit
5b372a9707
1 changed files with 4 additions and 1 deletions
|
@ -584,7 +584,10 @@ set_drm_property (gint fd, guint32 object, guint32 object_type,
|
|||
/* GstStructure parser limits the set of supported character, so we
|
||||
* replace the invalid characters with '-'. In DRM, this is generally
|
||||
* replacing spaces into '-'. */
|
||||
g_strcanon (property->name, G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS, '-');
|
||||
g_strcanon (property->name, G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS "_",
|
||||
'-');
|
||||
|
||||
GST_LOG ("found property %s (looking for %s)", property->name, prop_name);
|
||||
|
||||
if (!strcmp (property->name, prop_name)) {
|
||||
drmModeObjectSetProperty (fd, object, object_type,
|
||||
|
|
Loading…
Reference in a new issue