MediaExtractor/PluginManager: Add plugin deletion when extractor die

This commit is contained in:
Dario Casalinuovo 2016-03-15 00:54:45 +01:00
parent 3733e4b2ab
commit 22c9314255
2 changed files with 7 additions and 1 deletions

View File

@ -216,7 +216,7 @@ AddOnManager::GetStreamers(entry_ref* outRefs, int32* outCount,
outRefs++;
}
return B_ERROR;
return B_OK;
}

View File

@ -184,6 +184,12 @@ MediaExtractor::~MediaExtractor()
gPluginManager.DestroyReader(fReader);
// If this is a streaming situation we own
// the source
if (fStreamer != NULL) {
delete fSource;
gPluginManager.DestroyStreamer(fStreamer);
}
delete[] fStreamInfo;
// fSource is owned by the BMediaFile
}