make failures more visible
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6389 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d20d5c94f4
commit
21aea2f3df
@ -164,8 +164,6 @@ BMediaTrack::SeekToTime(bigtime_t *inout_time,
|
||||
if (!inout_time)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
bigtime_t request = *inout_time;
|
||||
|
||||
status_t result;
|
||||
uint32 seekTo;
|
||||
bigtime_t seekTime;
|
||||
@ -179,13 +177,13 @@ BMediaTrack::SeekToTime(bigtime_t *inout_time,
|
||||
time = seekTime;
|
||||
result = fExtractor->Seek(fStream, seekTo, &frame, &time);
|
||||
if (result != B_OK) {
|
||||
TRACE("BMediaTrack::SeekToTime: extractor seek failed\n");
|
||||
printf("BMediaTrack::SeekToTime: extractor seek failed\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
result = fDecoder->Seek(seekTo, 0, &frame, seekTime, &time);
|
||||
if (result != B_OK) {
|
||||
TRACE("BMediaTrack::SeekToTime: decoder seek failed\n");
|
||||
printf("BMediaTrack::SeekToTime: decoder seek failed\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -193,7 +191,7 @@ BMediaTrack::SeekToTime(bigtime_t *inout_time,
|
||||
fCurFrame = frame;
|
||||
fCurTime = time;
|
||||
|
||||
printf("BMediaTrack::SeekToTime finished, requested %.6f, result %.6f\n", request / 1000000.0, *inout_time / 1000000.0);
|
||||
printf("BMediaTrack::SeekToTime finished, requested %.6f, result %.6f\n", seekTime / 1000000.0, *inout_time / 1000000.0);
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
@ -209,8 +207,6 @@ BMediaTrack::SeekToFrame(int64 *inout_frame,
|
||||
if (!inout_frame)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
int64 request = *inout_frame;
|
||||
|
||||
status_t result;
|
||||
uint32 seekTo;
|
||||
int64 seekFrame;
|
||||
@ -224,21 +220,21 @@ BMediaTrack::SeekToFrame(int64 *inout_frame,
|
||||
frame = seekFrame;
|
||||
result = fExtractor->Seek(fStream, seekTo, &frame, &time);
|
||||
if (result != B_OK) {
|
||||
TRACE("BMediaTrack::SeekToFrame: extractor seek failed\n");
|
||||
printf("BMediaTrack::SeekToFrame: extractor seek failed\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
result = fDecoder->Seek(seekTo, seekFrame, &frame, 0, &time);
|
||||
if (result != B_OK) {
|
||||
return result;
|
||||
TRACE("BMediaTrack::SeekToFrame: decoder seek failed\n");
|
||||
printf("BMediaTrack::SeekToFrame: decoder seek failed\n");
|
||||
}
|
||||
|
||||
*inout_frame = frame;
|
||||
fCurFrame = frame;
|
||||
fCurTime = time;
|
||||
|
||||
printf("BMediaTrack::SeekToTime SeekToFrame, requested %Ld, result %Ld\n", request, *inout_frame);
|
||||
printf("BMediaTrack::SeekToTime SeekToFrame, requested %Ld, result %Ld\n", seekFrame, *inout_frame);
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user