From 4c5d34648c69be7ce29d29fe433bc2ad19c31cec Mon Sep 17 00:00:00 2001 From: He Junyan Date: Mon, 18 Apr 2022 12:44:19 +0800 Subject: [PATCH] va: h264enc: Fix the forgotten unlock() when getting device path property. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvah264enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c index 6f20ed2a1b..8c4e8647d1 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c @@ -4109,9 +4109,9 @@ gst_va_h264_enc_get_property (GObject * object, guint prop_id, case PROP_DEVICE_PATH:{ if (!(self->display && GST_IS_VA_DISPLAY_DRM (self->display))) { g_value_set_string (value, NULL); - return; + } else { + g_object_get_property (G_OBJECT (self->display), "path", value); } - g_object_get_property (G_OBJECT (self->display), "path", value); break; } default: