MediaWriter: Fix mismatched delete call
This commit is contained in:
parent
8108b86980
commit
040e39c534
|
@ -368,7 +368,7 @@ status_t MediaWriter::Connected(
|
||||||
bytesWritten = GetCurrentFile()->Write(data,input.format.u.multistream.max_chunk_size);
|
bytesWritten = GetCurrentFile()->Write(data,input.format.u.multistream.max_chunk_size);
|
||||||
end = TimeSource()->RealTime();
|
end = TimeSource()->RealTime();
|
||||||
}
|
}
|
||||||
delete data;
|
delete[] data;
|
||||||
GetCurrentFile()->Seek(-bytesWritten,SEEK_CUR); // put it back where we found it
|
GetCurrentFile()->Seek(-bytesWritten,SEEK_CUR); // put it back where we found it
|
||||||
|
|
||||||
fInternalLatency = end - start;
|
fInternalLatency = end - start;
|
||||||
|
|
Loading…
Reference in New Issue