mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
libs: display: drm: use g_strcmp0 to be null safe
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/321>
This commit is contained in:
parent
336c2b76d1
commit
d195417758
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ get_default_device_path (GstVaapiDisplay * display)
|
|||
parent = udev_device_get_parent (device);
|
||||
|
||||
for (i = 0; allowed_subsystems[i] != NULL; i++)
|
||||
if (strcmp (udev_device_get_subsystem (parent),
|
||||
if (g_strcmp0 (udev_device_get_subsystem (parent),
|
||||
allowed_subsystems[i]) == 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue