Skip to content

Commit

Permalink
Косметика кода.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lt committed Feb 17, 2024
1 parent 59524fd commit a767699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/apps/mplayerc/SaveTaskDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,7 @@ HRESULT CSaveTaskDlg::DownloadHTTP(CStringW url, const CStringW filepath)
}
}

int attempts = 0;
while (!m_bAbort && attempts <= 20) {
while (!m_bAbort) {
DWORD dwSizeRead = 0;
hr = httpAsync.Read(pBuffer.data(), bufLen, dwSizeRead);
if (hr != S_OK) {
Expand Down
6 changes: 3 additions & 3 deletions src/filters/parser/StreamDriveThru/StreamDriveThru.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
* (C) 2006-2023 see Authors.txt
* (C) 2006-2024 see Authors.txt
*
* This file is part of MPC-BE.
*
Expand Down Expand Up @@ -123,7 +123,7 @@ DWORD CStreamDriveThruFilter::ThreadProc()
case CMD_RUN:
Reply(S_OK);

do {
{
CComPtr<IAsyncReader> pAsyncReader;
CComPtr<IStream> pStream;

Expand Down Expand Up @@ -195,7 +195,7 @@ DWORD CStreamDriveThruFilter::ThreadProc()
if (CComPtr<IPin> pPin = m_pOutput->GetConnected()) {
pPin->EndOfStream();
}
} while (false);
}

break;
}
Expand Down

0 comments on commit a767699

Please sign in to comment.