splitmux: Recheck state after unlocking mutex.
authorJan Schmidt <jan@centricular.com>
Sun, 7 Aug 2016 14:56:38 +0000 (00:56 +1000)
committerJan Schmidt <jan@centricular.com>
Sun, 7 Aug 2016 14:56:38 +0000 (00:56 +1000)
commit89af379ff040923cfcbaf05354ed2b01a620b1b9
treeea353a4309bcddb9c1cd11b6bba263de0bb31289
parent69df65fabe6d7bfeba9afa5a60cc061b8639b80f
splitmux: Recheck state after unlocking mutex.

After dropping the splitmux lock, re-check the state,
don't just fall through and sleep unconditionally,
as we may have already missed the wakeup.

https://bugzilla.gnome.org/show_bug.cgi?id=769514
gst/multifile/gstsplitmuxsink.c