Simplified interface + fixed segfault when eof is reached. ref #287
This commit is contained in:
@@ -178,19 +178,6 @@ Transcoder::start()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Transcoder::asyncWaitForData(WaitCallback cb)
|
||||
{
|
||||
assert(_childProcess);
|
||||
|
||||
LOG(DEBUG) << "Want to wait for data";
|
||||
|
||||
_childProcess->asyncWaitForData([cb = std::move(cb)]
|
||||
{
|
||||
cb();
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
Transcoder::asyncRead(std::byte* buffer, std::size_t bufferSize, ReadCallback readCallback)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user