msdk: manage child sessions on parent GstMsdkContext
authorHyunjun Ko <zzoon@igalia.com>
Thu, 8 Mar 2018 20:38:30 +0000 (11:38 -0900)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 8 Mar 2018 20:38:30 +0000 (11:38 -0900)
commitc9faf0d612d7e73fbca16f1c227b181d851c5ae9
tree30a5e2aceaafc42e2a5e979ccee909aabc0b1505
parent37ef61586adaa295902515d69fca0f30b0e7ecaa
msdk: manage child sessions on parent GstMsdkContext

Sometimes parent context is released before its children get released.
In this case MFXClose of parent session fails.

To make sure that child sessions are closed before closing a parent
session,
Parent context needs to manage child sessions and close them first when
it's released.

https://bugzilla.gnome.org/show_bug.cgi?id=793412
sys/msdk/gstmsdkcontext.c