Return EALREADY if already in requested playback mode.
That's what the BeBook says the method is suppose to do.
This commit is contained in:
@@ -331,7 +331,9 @@ BFileGameSound::Perform(int32 selector,
|
|||||||
status_t
|
status_t
|
||||||
BFileGameSound::SetPaused(bool isPaused, bigtime_t rampTime)
|
BFileGameSound::SetPaused(bool isPaused, bigtime_t rampTime)
|
||||||
{
|
{
|
||||||
if (fPaused != isPaused) {
|
if (fPaused == isPaused)
|
||||||
|
return EALREADY;
|
||||||
|
|
||||||
Lock();
|
Lock();
|
||||||
|
|
||||||
// Clear any old ramping
|
// Clear any old ramping
|
||||||
@@ -350,7 +352,6 @@ BFileGameSound::SetPaused(bool isPaused, bigtime_t rampTime)
|
|||||||
|
|
||||||
fPaused = isPaused;
|
fPaused = isPaused;
|
||||||
Unlock();
|
Unlock();
|
||||||
}
|
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user