webrtc: start in the closed state
authorMatthew Waters <matthew@centricular.com>
Mon, 8 Oct 2018 10:56:31 +0000 (21:56 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 8 Oct 2018 10:56:31 +0000 (21:56 +1100)
commit7bf18ad258bfd81200197378dbedde125f813fad
tree0f2a103ed9b6c6898202b7a939b39aea0450b035
parentc4fe52395b21b54fd6ee6b9a5010737404889242
webrtc: start in the closed state

This means that we will reject all operations before we've transitioned
into READY.

This also fixes the tests using the default GMainContext in the NULL
state instead of the webrtcbin internal GMainContext and thread.  Also
removes a potential ordering race where on the element transitioning to
READY, an operations could have been queued on two different threads and
removing a guarentee on operation ordering.
ext/webrtc/gstwebrtcbin.c
tests/check/elements/webrtcbin.c