x265: Fix a deadlock when failing to create the x265enc.
authorHe Junyan <junyan.he@intel.com>
Wed, 4 Aug 2021 07:02:01 +0000 (15:02 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 9 Aug 2021 10:28:11 +0000 (10:28 +0000)
commitc5fda68403b74911d0b2e2ab2b1e58c52ab3dad7
tree82f31e6e304de4f1593687e8fae2ad202b7490f3
parent34c81d13b6cc3285e78c8c11f9489e013398c78a
x265: Fix a deadlock when failing to create the x265enc.

The GST_ELEMENT_ERROR will call the gst_object_get_path_string and
use gst_object_get_parent to get the full object path name, which
needs to lock the object. But we are already in a locked context and
so this will cause a deadlock, the pipeline can not exit normally.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2451>
ext/x265/gstx265enc.c