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:
@@ -434,9 +434,14 @@ status_t
|
|||||||
BMediaTrack::FindKeyFrameForTime(bigtime_t *inout_time,
|
BMediaTrack::FindKeyFrameForTime(bigtime_t *inout_time,
|
||||||
int32 flags) const
|
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();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
return B_OK;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -444,9 +449,14 @@ status_t
|
|||||||
BMediaTrack::FindKeyFrameForFrame(int64 *inout_frame,
|
BMediaTrack::FindKeyFrameForFrame(int64 *inout_frame,
|
||||||
int32 flags) const
|
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();
|
UNIMPLEMENTED();
|
||||||
|
|
||||||
return B_OK;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user