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 66 additions, 56 deletionsgst/multifile/gstsplitmuxpartreader.c
- gst/multifile/gstsplitmuxpartreader.h 1 addition, 0 deletionsgst/multifile/gstsplitmuxpartreader.h
- gst/multifile/gstsplitmuxsrc.c 226 additions, 44 deletionsgst/multifile/gstsplitmuxsrc.c
- gst/multifile/gstsplitmuxsrc.h 5 additions, 0 deletionsgst/multifile/gstsplitmuxsrc.h