diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-03-30 21:51:25 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-03-31 20:49:20 +0400 |
commit | 928af40d894b14d690df237ec55b7319ab05b690 (patch) | |
tree | 8640424b4e68d43a97f8a25eb55c6e50ae1df504 /src/filters/source/ShoutcastSource | |
parent | 45fddd57e29462e263db7972d35662ac0cd71275 (diff) |
Cppcheck fixes:
* reduce variable scope
* remove unneeded variable assignments
Diffstat (limited to 'src/filters/source/ShoutcastSource')
-rw-r--r-- | src/filters/source/ShoutcastSource/ShoutcastSource.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp index 95f59f9c1..cb643cd69 100644 --- a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp +++ b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp @@ -352,10 +352,8 @@ HRESULT CShoutcastStream::DecideBufferSize(IMemAllocator* pAlloc, ALLOCATOR_PROP HRESULT CShoutcastStream::FillBuffer(IMediaSample* pSample)
{
- HRESULT hr;
-
BYTE* pData = NULL;
- if (FAILED(hr = pSample->GetPointer(&pData)) || !pData) {
+ if (FAILED(pSample->GetPointer(&pData)) || !pData) {
return S_FALSE;
}
|