MediaExtractor/PluginManager: Add plugin deletion when extractor die
This commit is contained in:
@@ -216,7 +216,7 @@ AddOnManager::GetStreamers(entry_ref* outRefs, int32* outCount,
|
|||||||
outRefs++;
|
outRefs++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_ERROR;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -184,6 +184,12 @@ MediaExtractor::~MediaExtractor()
|
|||||||
|
|
||||||
gPluginManager.DestroyReader(fReader);
|
gPluginManager.DestroyReader(fReader);
|
||||||
|
|
||||||
|
// If this is a streaming situation we own
|
||||||
|
// the source
|
||||||
|
if (fStreamer != NULL) {
|
||||||
|
delete fSource;
|
||||||
|
gPluginManager.DestroyStreamer(fStreamer);
|
||||||
|
}
|
||||||
delete[] fStreamInfo;
|
delete[] fStreamInfo;
|
||||||
// fSource is owned by the BMediaFile
|
// fSource is owned by the BMediaFile
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user