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:
Dario Casalinuovo 2016-03-31 17:56:24 +02:00
parent e38a85b86a
commit 7eaa054b87
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

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