Skip to main content
lucas yuan
Participant
October 8, 2022
Question

Call the AEGP_GetNewStreamValue() method to pass parameters but report an error

  • October 8, 2022
  • 1 reply
  • 283 views

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!

This topic has been closed for replies.

1 reply

James Whiffin
Legend
October 17, 2022

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?

lucas yuan
Participant
October 17, 2022

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.