Moved the TimeSourceOp() call to the beginning of the TIMESOURCE_OP event

(as described by Marcus).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6615 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-17 16:41:07 +00:00
parent 56b91b1a41
commit 69cb3c1013

View File

@ -240,6 +240,13 @@ BTimeSource::HandleMessage(int32 message,
case TIMESOURCE_OP:
{
const time_source_op_info *data = static_cast<const time_source_op_info *>(rawdata);
status_t result;
result = TimeSourceOp(*data, NULL);
if (result != B_OK) {
ERROR("BTimeSource::HandleMessage: TimeSourceOp failed\n");
}
switch (data->op) {
case B_TIMESOURCE_START:
DirectStart(data->real_time);
@ -254,11 +261,6 @@ BTimeSource::HandleMessage(int32 message,
DirectSeek(data->performance_time, data->real_time);
break;
}
status_t result;
result = TimeSourceOp(*data, NULL);
if (result != B_OK) {
ERROR("BTimeSource::HandleMessage: TimeSourceOp failed\n");
}
return B_OK;
}