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