MediaWriter: Private stuff should stay private
This commit is contained in:
parent
e5e2a570ba
commit
59125d3ced
@ -47,7 +47,6 @@ private:
|
||||
virtual void _ReservedWriter4();
|
||||
virtual void _ReservedWriter5();
|
||||
|
||||
public: // XXX for test programs only
|
||||
void Setup(BDataIO* target);
|
||||
|
||||
BDataIO* fTarget;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user