info: Fix deadlock in gst_ring_buffer_logger_log
authorDoug Nazar <nazard@nazar.ca>
Wed, 31 Jul 2019 01:40:47 +0000 (21:40 -0400)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Aug 2019 15:24:03 +0000 (15:24 +0000)
commit7b596ba6c617364cce30b80bb82ef09b8181f4b5
tree81cd110572435984275ae6ee3b3c36f4ee40cf48
parente4cba8a0bffeab544cc2b7975ebfe42edf8c9422
info: Fix deadlock in gst_ring_buffer_logger_log

gst_ring_buffer_logger_log calls several functions while formatting
the message which may in turn log a message while we already hold
the mutex. Do all formatting first before acquiring the mutex to
avoid this and reduce the time we hold the mutex.
gst/gstinfo.c