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:
@@ -18,7 +18,7 @@ public:
|
|||||||
Streamer();
|
Streamer();
|
||||||
virtual ~Streamer();
|
virtual ~Streamer();
|
||||||
|
|
||||||
virtual status_t Sniff(BUrl* url, BMediaIO** source) = 0;
|
virtual status_t Sniff(BUrl* url, BDataIO** source) = 0;
|
||||||
private:
|
private:
|
||||||
virtual void _ReservedStreamer1();
|
virtual void _ReservedStreamer1();
|
||||||
virtual void _ReservedStreamer2();
|
virtual void _ReservedStreamer2();
|
||||||
|
|||||||
@@ -623,7 +623,7 @@ PluginManager::CreateStreamer(Streamer** streamer, BUrl* url, BDataIO** source)
|
|||||||
|
|
||||||
(*streamer)->fMediaPlugin = plugin;
|
(*streamer)->fMediaPlugin = plugin;
|
||||||
|
|
||||||
BMediaIO* streamSource = NULL;
|
BDataIO* streamSource = NULL;
|
||||||
if ((*streamer)->Sniff(url, &streamSource) == B_OK) {
|
if ((*streamer)->Sniff(url, &streamSource) == B_OK) {
|
||||||
TRACE("PluginManager::CreateStreamer: Sniff success ");
|
TRACE("PluginManager::CreateStreamer: Sniff success ");
|
||||||
*source = streamSource;
|
*source = streamSource;
|
||||||
|
|||||||
Reference in New Issue
Block a user