Writer: Make constructor and Init protected

This commit is contained in:
Barrett17 2018-11-22 09:24:41 +01:00
parent 75b5f33c19
commit a741fb49a6

View File

@ -12,11 +12,6 @@ class PluginManager;
class Writer {
public:
Writer();
virtual ~Writer();
virtual status_t Init(const media_file_format* fileFormat) = 0;
virtual status_t SetMetaData(BMetaData* data) = 0;
virtual status_t CommitHeader() = 0;
virtual status_t Flush() = 0;
@ -42,6 +37,12 @@ public:
virtual status_t Perform(perform_code code, void* data);
protected:
Writer();
virtual ~Writer();
virtual status_t Init(const media_file_format* fileFormat) = 0;
private:
void _Setup(BDataIO* target);
@ -51,6 +52,7 @@ private:
// needed for plug-in reference count management
friend class PluginManager;
friend class MediaWriter;
virtual void _ReservedWriter1();
virtual void _ReservedWriter2();