MediaExtractor: Adapt to new BUrl functionality

This commit is contained in:
Dario Casalinuovo
2016-03-25 22:18:15 +01:00
parent b1ccc05864
commit a2b3f12698
2 changed files with 44 additions and 1 deletions
+10
View File
@@ -10,7 +10,10 @@
#define _MEDIA_EXTRACTOR_H
#include <Url.h>
#include "ReaderPlugin.h"
#include "StreamerPlugin.h"
#include "DecoderPlugin.h"
@@ -37,10 +40,14 @@ struct stream_info {
class MediaExtractor {
public:
MediaExtractor(BDataIO* source, int32 flags);
MediaExtractor(BUrl* url, int32 flags);
~MediaExtractor();
status_t InitCheck();
BDataIO* Source() const;
void GetFileFormatInfo(
media_file_format* fileFormat) const;
status_t GetMetaData(BMessage* _data) const;
@@ -70,6 +77,8 @@ public:
BMessage* _data) const;
private:
void _Init(BDataIO* source, int32 flags);
void _RecycleLastChunk(stream_info& info);
static int32 _ExtractorEntry(void* arg);
void _ExtractorThread();
@@ -82,6 +91,7 @@ private:
BDataIO* fSource;
Reader* fReader;
Streamer* fStreamer;
stream_info* fStreamInfo;
int32 fStreamCount;