API2 Rework: fix possible corrupt in CodecContext::isValid()
API2 Rework: fix possible corrupt in CodecContext::isValid()

Check parent stream for valid first, after that check m_raw and m_raw-
still non null, but is free'd, so access to m_raw->codec is invalid.

commshare/avcpp