va: h264enc: Fix the forgotten unlock() when getting device path property.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2215>
This commit is contained in:
He Junyan 2022-04-18 12:44:19 +08:00
parent 23e280f05b
commit 4c5d34648c

View file

@ -4109,9 +4109,9 @@ gst_va_h264_enc_get_property (GObject * object, guint prop_id,
case PROP_DEVICE_PATH:{ case PROP_DEVICE_PATH:{
if (!(self->display && GST_IS_VA_DISPLAY_DRM (self->display))) { if (!(self->display && GST_IS_VA_DISPLAY_DRM (self->display))) {
g_value_set_string (value, NULL); 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; break;
} }
default: default: