basesink: don't unlock mutex that is not locked
authorTim-Philipp Müller <tim@centricular.com>
Fri, 24 Oct 2014 11:51:07 +0000 (12:51 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 24 Oct 2014 11:51:07 +0000 (12:51 +0100)
commit989e97d1dd9d2a8768f9b97e48acb2a077ad8e25
treed7e906bac0bd1336de1dcd2ba1d253c083c5ffa4
parent1affe7ef0747da5fd4109d12ed8ce13875ba072b
basesink: don't unlock mutex that is not locked

Fixes 'Attempt to unlock mutex that was not locked'
warning with newer GLibs when sink is shut down in
certain situations. Triggered by the decodebin
test_reuse_without_decoders unit test in -base
sometimes, esp. on slower machines.
libs/gst/base/gstbasesink.c