Menu

#29 DirectX wrapper: GetDuration returns 0

open
nobody
None
5
2005-08-02
2005-08-01
Jack Jansen
No

I think the following is a bug in the Dirac DirectX wrapper, but that
doesn't mean that the actual bug is with my understanding of the
subject, so feel free to close this bug if it sounds silly.

When I call GetDuration(&dur) on the IMultiMediaStream
corresponding to my dirac movie this results in dur being set to 0
and S_OK being returned. This would seem to signal a zero-length
movie.

The DirectX documentation seems to suggest that a return value of
S_FALSE is more appropriate: "Stream contains live data or this
method couldn't determine the duration", where the second part
seems to apply to Dirac.

Discussion

  • Jack Jansen

    Jack Jansen - 2005-08-01

    Logged In: YES
    user_id=45365

    Sorry, my error: S_FALSE is returned by GetDuration. My code failed to
    test correctly for it, though:-)

     
  • Jack Jansen

    Jack Jansen - 2005-08-01
    • status: open --> closed-invalid
     
  • Jack Jansen

    Jack Jansen - 2005-08-02
    • status: closed-invalid --> open
     
  • Jack Jansen

    Jack Jansen - 2005-08-02

    Logged In: YES
    user_id=45365

    Now I'm getting very confused. Today GetDuration is returning S_OK again
    for me, and I can't make it return S_FALSE. So I'm opening this bug report
    again: there is something fishy with the return value of GetDuration.

     

Log in to post a comment.