MediaClient: IsRunning() status is set at handle time

This commit is contained in:
Dario Casalinuovo 2017-01-10 22:44:16 +01:00
parent 3dbb4ff62d
commit e7aa210bca

View File

@ -296,15 +296,8 @@ BMediaClient::Start(bool force)
remoteNode, fNode->TimeSource()->Now()); remoteNode, fNode->TimeSource()->Now());
} }
err = BMediaRoster::CurrentRoster()->StartNode( return BMediaRoster::CurrentRoster()->StartNode(
fNode->Node(), fNode->TimeSource()->Now()); fNode->Node(), fNode->TimeSource()->Now());
if (err == B_OK)
fRunning = true;
else
fRunning = false;
return err;
} }
@ -313,15 +306,8 @@ BMediaClient::Stop(bool force)
{ {
CALLED(); CALLED();
status_t err = BMediaRoster::CurrentRoster()->StopNode( return BMediaRoster::CurrentRoster()->StopNode(
fNode->Node(), fNode->TimeSource()->Now()); fNode->Node(), fNode->TimeSource()->Now());
if (err == B_OK)
fRunning = false;
else
fRunning = true;
return err;
} }
@ -452,12 +438,14 @@ BMediaClient::AddOn(int32* id) const
void void
BMediaClient::HandleStart(bigtime_t performanceTime) BMediaClient::HandleStart(bigtime_t performanceTime)
{ {
fRunning = true;
} }
void void
BMediaClient::HandleStop(bigtime_t performanceTime) BMediaClient::HandleStop(bigtime_t performanceTime)
{ {
fRunning = false;
} }