StreamerPlugin: Use BDataIO as base interface
* There's no need to force the streamer plugin to use a BMediaIO. This class is supplied to accomodate more smart uses, but in certain cases it makes just things more complex. If a plugin doesn't need to have an internal caching method, then it will be simpler to implement a block-consuming BDataIO and let the internal BMediaIOWrapper to deal with caching.
This commit is contained in:
parent
e38a85b86a
commit
7eaa054b87
@ -18,7 +18,7 @@ public:
|
||||
Streamer();
|
||||
virtual ~Streamer();
|
||||
|
||||
virtual status_t Sniff(BUrl* url, BMediaIO** source) = 0;
|
||||
virtual status_t Sniff(BUrl* url, BDataIO** source) = 0;
|
||||
private:
|
||||
virtual void _ReservedStreamer1();
|
||||
virtual void _ReservedStreamer2();
|
||||
|
@ -623,7 +623,7 @@ PluginManager::CreateStreamer(Streamer** streamer, BUrl* url, BDataIO** source)
|
||||
|
||||
(*streamer)->fMediaPlugin = plugin;
|
||||
|
||||
BMediaIO* streamSource = NULL;
|
||||
BDataIO* streamSource = NULL;
|
||||
if ((*streamer)->Sniff(url, &streamSource) == B_OK) {
|
||||
TRACE("PluginManager::CreateStreamer: Sniff success ");
|
||||
*source = streamSource;
|
||||
|
Loading…
x
Reference in New Issue
Block a user