adaptivedemux: Add more safeguards around state changes.
authorJan Schmidt <jan@centricular.com>
Wed, 13 Jul 2016 13:02:10 +0000 (23:02 +1000)
committerJan Schmidt <jan@centricular.com>
Fri, 15 Jul 2016 04:33:23 +0000 (14:33 +1000)
commit585e60c4abd0ea4e0a12700b84580e5b8a7cdc53
tree95623a2d7737c2097c0dc130091906337fa596ad
parent5fc21d5c7472f84cdc519529eddd7068a5c65a91
adaptivedemux: Add more safeguards around state changes.

Make state changes of internal elements more reliable by locking
their state, and ensuring that they aren't blocked pushing data
downstream before trying to set their state.

Add a boolean to avoid starting tasks when the main
thread is busy trying to shut the element down.
gst-libs/gst/adaptivedemux/gstadaptivedemux.c
gst-libs/gst/adaptivedemux/gstadaptivedemux.h