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:
parent
56b91b1a41
commit
69cb3c1013
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user