summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-04-21 18:00:26 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-04-26 10:40:38 +0000
commitd19541775818aee6c85a4c54ddedbd26d647698f (patch)
treeb99da1ba97c3e18affb638239eec56cf7c3c8a3d /gst-libs
parent336c2b76d1748b6ecab2922d4f387314529881a1 (diff)
libs: display: drm: use g_strcmp0 to be null safe
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/321>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_drm.c b/gst-libs/gst/vaapi/gstvaapidisplay_drm.c
index 25707544..ecc5a14f 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay_drm.c
+++ b/gst-libs/gst/vaapi/gstvaapidisplay_drm.c
@@ -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;