Copy link to clipboard
Copied
Greetings all,
I want to call the AEGP_GetNewStreamValue() to get value of the streamH, but the result always return A_Err_PARAMETER. Can anyone help me what is the problem?
The revelant code is as follows:
AEGP_LTimeMode time_mode = AEGP_LTimeMode_LayerTime;
A_Time timeT = {0,1};
AEGP_StreamValue2 stream_value;
ERR(suites.StreamSuite5()->AEGP_GetNewStreamValue(S_my_id, streamH, time_mode, &timeT, TRUE, &stream_value));
Kindly, all your help is appreciated!
Copy link to clipboard
Copied
Hi Lucas
Did you receive any err retrieving the streamH itself? Otherwise the code looks good to me. Which param type is the stream you want to sample?
Copy link to clipboard
Copied
It has been solved!
I used to call the method in the sub-thread of the sub-thread, and then it was executed normally when I called it in the main thread.
Thank you for your reply.