MediaExtractor: The source is always owned by BMediaFile
* While originally I think it was a good idea to make it own the source, then I decided to uniform the code by making the BMediaFile to be the only responsible of that.
This commit is contained in:
parent
21cf69c709
commit
6646363eba
@ -184,12 +184,9 @@ MediaExtractor::~MediaExtractor()
|
||||
|
||||
gPluginManager.DestroyReader(fReader);
|
||||
|
||||
// If this is a streaming situation we own
|
||||
// the source
|
||||
if (fStreamer != NULL) {
|
||||
delete fSource;
|
||||
if (fStreamer != NULL)
|
||||
gPluginManager.DestroyStreamer(fStreamer);
|
||||
}
|
||||
|
||||
delete[] fStreamInfo;
|
||||
// fSource is owned by the BMediaFile
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user