BufferCache: Don't find anonymous buffers

This commit is contained in:
Dario Casalinuovo 2015-04-14 00:51:45 +02:00
parent 2e60efdafe
commit aa50bf9e9e

View File

@ -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;