splitmuxsrc: Implement state change asynchronously instead of blocking
authorSebastian Dröge <sebastian@centricular.com>
Wed, 9 Jan 2019 09:42:36 +0000 (11:42 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 9 Jan 2019 11:35:58 +0000 (13:35 +0200)
commit99bb6f44ba99f33e91bab151082ce50e2fa59138
treedee3d44988a6fdca3d3753bf375e91e08abfbd82
parent8b155d71884156f15bdd97d30ea208f3e095c684
splitmuxsrc: Implement state change asynchronously instead of blocking

Blocking in change_state() is a recipe for disaster, even more so if
we wait for another thread that also calls into various element API and
could then lead to deadlocks on e.g. the state lock.
gst/multifile/gstsplitmuxpartreader.c
gst/multifile/gstsplitmuxpartreader.h
gst/multifile/gstsplitmuxsrc.c
gst/multifile/gstsplitmuxsrc.h