Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

chakrdeep

DirectShow's ConvertTimeFormat issue

This topic is 5215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m using the following code : LONGLONG time = 120L; LONGLONG frame = 0L; m_pMediaSeeking->ConvertTimeFormat(&time,&TIME_FORMAT_MEDIA_TIME, frame,&TIME_FORMAT_FRAME); printf("\n %ld frame selected",frame); m_pMediaSeeking->SetTimeFormat(&TIME_FORMAT_FRAME); m_pMediaSeeking->SetPositions(&frame, AM_SEEKING_AbsolutePositioning,NULL, AM_SEEKING_NoPositioning); The printf statement returns always 0 irrespective of any change in the value of ''time'' variable. Any clues ? .. Thanks

Share this post


Link to post
Share on other sites
Advertisement
I haven''t used the specific function you are trying to use but I wonder if the only problem is that you forgot an &. In your call to ConvertTimeFormat try putting &frame instead of just frame.

Share this post


Link to post
Share on other sites

nice try but the signature of the function is :

HRESULT ConvertTimeFormat(
LONGLONG* pTarget,
const GUID* pTargetFormat,
LONGLONG Source,
const GUID* pSourceFormat
);

tx though ..

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!