Reduce code duplication in renderers
This commit is contained in:
parent
25e5175c54
commit
ada2270bd1
10 changed files with 31 additions and 105 deletions
|
|
@ -278,11 +278,6 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
virtual int getDecoderCapabilities() override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual IFFmpegRenderer::FramePacingConstraint getFramePacingConstraint() override
|
||||
{
|
||||
// This renderer is inherently tied to V-sync due how we're
|
||||
|
|
@ -291,12 +286,6 @@ public:
|
|||
return PACING_FORCE_ON;
|
||||
}
|
||||
|
||||
virtual bool isRenderThreadSupported() override
|
||||
{
|
||||
// renderFrame() may be called outside of the main thread
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
AVBufferRef* m_HwContext;
|
||||
AVSampleBufferDisplayLayer* m_DisplayLayer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue