va: h264enc: Fix the forgotten unlock() when getting device path property.
authorHe Junyan <junyan.he@intel.com>
Mon, 18 Apr 2022 04:44:19 +0000 (12:44 +0800)
committerHe Junyan <junyan.he@intel.com>
Mon, 18 Apr 2022 04:44:19 +0000 (12:44 +0800)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2215>

subprojects/gst-plugins-bad/sys/va/gstvah264enc.c

index 6f20ed2..8c4e864 100644 (file)
@@ -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: