Skip to content

Commit

Permalink
Fix mythtranscode filter use.
Browse files Browse the repository at this point in the history
The setting for mythranscode filters has existed for a long time,
but it doesn't look like it was ever fully hooked up or else it
was removed somewhere along the line during a code restructure.

This adds a call to videoFilters->ProcessFrame() in
MythPlayer::TranscodeGetNextFrame() to process the last decoded frame.

Fixes #8533.
  • Loading branch information
cpinkham committed Oct 18, 2011
1 parent ae6621f commit 9a54edf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -4396,6 +4396,18 @@ bool MythPlayer::TranscodeGetNextFrame(
if (GetEof())
return false;
is_key = decoder->isLastFrameKey();

videofiltersLock.lock();
if (videoFilters)
{
FrameScanType ps = m_scan;
if (kScan_Detect == m_scan || kScan_Ignore == m_scan)
ps = kScan_Progressive;

videoFilters->ProcessFrame(videoOutput->GetLastDecodedFrame(), ps);
}
videofiltersLock.unlock();

return true;
}

Expand Down

0 comments on commit 9a54edf

Please sign in to comment.