BufferCache: Don't find anonymous buffers
This commit is contained in:
parent
2e60efdafe
commit
aa50bf9e9e
@ -35,6 +35,9 @@ BufferCache::~BufferCache()
|
||||
BBuffer*
|
||||
BufferCache::GetBuffer(media_buffer_id id)
|
||||
{
|
||||
if (id <= 0)
|
||||
return NULL;
|
||||
|
||||
BufferMap::iterator found = fMap.find(id);
|
||||
if (found != fMap.end())
|
||||
return found->second;
|
||||
|
Loading…
x
Reference in New Issue
Block a user