Skip to content

Commit

Permalink
[WIN] the check is more useful after cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalP authored and CrystalP committed Sep 7, 2011
1 parent 96fe798 commit fde2c93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp
Expand Up @@ -1266,9 +1266,6 @@ bool CProcessor::Render(RECT src, RECT dst, IDirect3DSurface9* target, REFERENCE
{
CSingleLock lock(m_section);

if(m_sample.empty())
return false;

// MinTime and MaxTime are the first and last samples to feed the processor.
// MinTime is also the first sample to keep.
REFERENCE_TIME MinTime = time - m_caps.NumBackwardRefSamples*2;
Expand All @@ -1287,6 +1284,9 @@ bool CProcessor::Render(RECT src, RECT dst, IDirect3DSurface9* target, REFERENCE
it++;
}

if(m_sample.empty())
return false;

D3DSURFACE_DESC desc;
CHECK(target->GetDesc(&desc));

Expand Down

0 comments on commit fde2c93

Please sign in to comment.