MediaWriter: Private stuff should stay private

This commit is contained in:
Barrett17 2018-10-28 15:22:38 +01:00
parent e5e2a570ba
commit 59125d3ced
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,6 @@ private:
virtual void _ReservedWriter4();
virtual void _ReservedWriter5();
public: // XXX for test programs only
void Setup(BDataIO* target);
BDataIO* fTarget;

View File

@ -590,7 +590,7 @@ AVFormatWriter::_Write(void* cookie, uint8* buffer, int bufferSize)
AVFormatWriter* writer = reinterpret_cast<AVFormatWriter*>(cookie);
ssize_t written = writer->fTarget->Write(buffer, bufferSize);
ssize_t written = writer->Target()->Write(buffer, bufferSize);
TRACE_IO(" written: %ld\n", written);
return (int)written;
@ -606,7 +606,7 @@ AVFormatWriter::_Seek(void* cookie, off_t offset, int whence)
AVFormatWriter* writer = reinterpret_cast<AVFormatWriter*>(cookie);
BMediaIO* mediaIO = dynamic_cast<BMediaIO*>(writer->fTarget);
BMediaIO* mediaIO = dynamic_cast<BMediaIO*>(writer->Target());
if (mediaIO == NULL)
return -1;