BMediaFile: fix MediaExtractor crash.

* stop the extractor processing before deleting the source.
* crash happened in MediaPlayer FilePlaylistItem::_CalculateDuration().
* was a regression introduced in hrev50671.
* fixes #13156.
This commit is contained in:
Jérôme Duval
2017-07-24 11:59:05 +02:00
parent 13dbf47109
commit dbad909b4e
3 changed files with 27 additions and 7 deletions
+3
View File
@@ -72,6 +72,9 @@ public:
status_t GetStreamMetaData(int32 stream,
BMessage* _data) const;
void StopProcessing();
private:
void _Init(BDataIO* source, int32 flags);