BMediaEventLooper::SetBufferDuration: Clamp if negative
* For the sake of making the code more backward compatible, and safer eventually.
This commit is contained in:
@@ -417,6 +417,10 @@ void
|
||||
BMediaEventLooper::SetBufferDuration(bigtime_t duration)
|
||||
{
|
||||
CALLED();
|
||||
|
||||
if (duration < 0)
|
||||
duration = 0;
|
||||
|
||||
fBufferDuration = duration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user