MediaExtractor/PluginManager: Add plugin deletion when extractor die
This commit is contained in:
parent
3733e4b2ab
commit
22c9314255
@ -216,7 +216,7 @@ AddOnManager::GetStreamers(entry_ref* outRefs, int32* outCount,
|
||||
outRefs++;
|
||||
}
|
||||
|
||||
return B_ERROR;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user