• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit Search
0

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

New Here ,
Oct 07, 2022 Oct 07, 2022

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!

TOPICS
Error or problem , SDK

Views

60

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 16, 2022 Oct 16, 2022

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2022 Oct 16, 2022

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines