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:
John Scipione
2012-12-24 15:27:41 -05:00
parent b83bece153
commit ff3409e005
+3 -2
View File
@@ -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;
} }