Return B_ERROR for the FindKeyFrameFor*() methods, unless the time/frame

is 0, in which case it is almost save to assume it is a keyframe. Added
TODO though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24474 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-03-19 17:15:12 +00:00
parent c844c20840
commit a08f6a39d8
1 changed files with 12 additions and 2 deletions

View File

@ -434,9 +434,14 @@ status_t
BMediaTrack::FindKeyFrameForTime(bigtime_t *inout_time,
int32 flags) const
{
// TODO: let the codec handle this, but it is almost
// save to assume that frame at time 0 is a keyframe
if (*inout_time == 0)
return B_OK;
UNIMPLEMENTED();
return B_OK;
return B_ERROR;
}
@ -444,9 +449,14 @@ status_t
BMediaTrack::FindKeyFrameForFrame(int64 *inout_frame,
int32 flags) const
{
// TODO: let the codec handle this, but it is almost
// save to assume that frame 0 is a keyframe
if (*inout_frame == 0)
return B_OK;
UNIMPLEMENTED();
return B_OK;
return B_ERROR;
}