- first I run
ProcessInput
andProcessOutput
in different thread.
one forProcessInput
and another forProcessOutput
then I combine
it in one thread but same error. always blocked with no return. - and I write the data what I
ProcessInput
and useCCPlay
I can
play it (H264). - then I write Console Application of C++ and read all the H264 file in
Step1 and with same code toProcessOutput
yes it succeed. - but the original code can not I do not know why.
I compare the two code all is same. InputMediaType and OutputMediaType is same settings is same.
what is different is to run first code in thread.
and others.
transform.GetOutputStreamInfo
returns with dwFlags=263
(blocked) and dwFlags=7
(succeeded)
first I can not use to GetCurrentLength
to the OutputMediaBuffer it returns 0.
and with dwFlags=7
which run in Console returns the right DWORD value.
you may say I should copy the demo here but the code is too large.
and you may say I should write small demo here. but the small demo runs successfully.