Streamer: Make constructor private

This commit is contained in:
Barrett17
2018-11-22 09:47:12 +01:00
parent f40547016d
commit 06b088bd62
+8 -3
View File
@@ -1,9 +1,12 @@
/*
* Copyright 2017, Dario Casalinuovo. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _STREAMER_PLUGIN_H
#define _STREAMER_PLUGIN_H
#include <MediaIO.h>
#include <MediaTrack.h>
#include <Url.h>
#include "MediaPlugin.h"
@@ -16,15 +19,17 @@ class PluginManager;
class Streamer {
public:
virtual status_t Sniff(const BUrl& url, BDataIO** source) = 0;
protected:
Streamer();
virtual ~Streamer();
virtual status_t Sniff(const BUrl& url, BDataIO** source) = 0;
private:
MediaPlugin* fMediaPlugin;
friend class PluginManager;
friend class MediaStreamer;
virtual void _ReservedStreamer1();
virtual void _ReservedStreamer2();