diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-02-05 13:27:07 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-02-05 13:27:07 +0400 |
commit | 6cb2939b677159a85147c6500835c194ee1ccf86 (patch) | |
tree | 54994b57d8df3203b276d15ee73c46d227ea6826 /src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp | |
parent | e736ccc10964dfcd571d1b0f07327819c31a63a9 (diff) |
apply astyle
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4039 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp')
-rw-r--r-- | src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp b/src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp index 4e42bf718..2824094a2 100644 --- a/src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp +++ b/src/filters/parser/MP4Splitter/Ap4AsyncReaderStream.cpp @@ -22,7 +22,7 @@ void AP4_AsyncReaderStream::AddReference() void AP4_AsyncReaderStream::Release()
{
ASSERT(m_refs > 0);
- if(--m_refs == 0) {
+ if (--m_refs == 0) {
delete this;
}
}
@@ -31,25 +31,25 @@ AP4_Result AP4_AsyncReaderStream::Read(void* buffer, AP4_Size bytesToRead, AP4_S {
__int64 bytesAvail = m_pFile->GetRemaining();
- if(bytesAvail < (long long)bytesToRead) {
- if(bytesRead) {
+ if (bytesAvail < (long long)bytesToRead) {
+ if (bytesRead) {
*bytesRead = bytesAvail;
}
bytesToRead = bytesAvail;
}
- if(bytesAvail == 0) {
+ if (bytesAvail == 0) {
return AP4_ERROR_EOS;
}
- if(FAILED(m_pFile->ByteRead((BYTE*)buffer, bytesToRead))) {
- if(bytesRead) {
+ if (FAILED(m_pFile->ByteRead((BYTE*)buffer, bytesToRead))) {
+ if (bytesRead) {
*bytesRead = 0;
}
return AP4_ERROR_READ_FAILED;
}
- if(bytesRead) {
+ if (bytesRead) {
*bytesRead = bytesToRead;
}
|