mskd: vpp: error out gracefully instead of segfaulting if Init failed
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 7 Jun 2018 23:29:29 +0000 (15:29 -0800)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 7 Jun 2018 23:29:29 +0000 (15:29 -0800)
commit665f4a140ff8224c6f3952b779f8585892a20e04
tree1d87450aea0028c011ad1138530ec3c4420932a1
parent6cd12cb6a1a9d7ebe481d7f56e036fc5552db59c
mskd: vpp: error out gracefully instead of segfaulting if Init failed

Since we do the MSDK initializing in set_caps(), a FALSE
return may still cause the invokation of set_caps() again
and this will leads to buffer allocation and other mess-up.
So make sure the msdk initialized correctly before trying
to do any buffer allocation.

https://bugzilla.gnome.org/show_bug.cgi?id=796465
sys/msdk/gstmsdkvpp.c
sys/msdk/gstmsdkvpp.h