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:
Dario Casalinuovo 2016-05-17 01:01:10 +02:00
parent 21cf69c709
commit 6646363eba

View File

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