Skip to content
Snippets Groups Projects
Commit 2cc4c967 authored by Sébastien Blin's avatar Sébastien Blin Committed by Kateryna Kostiuk
Browse files

video: only define currentAVFrame if needed

Change-Id: I85652e59a39097303fbfc414b7391a34dec019a6
parent 8e954827
Branches
No related tags found
Loading
......@@ -134,10 +134,14 @@ public:
* @return current rendered frame
*/
Frame currentFrame() const;
#if defined(ENABLE_LIBWRAP) || (defined __APPLE__)
/**
* @return current avframe
*/
std::unique_ptr<AVFrame, void(*)(AVFrame*)> currentAVFrame() const;
#endif
/**
* @return current size
*/
......
......@@ -156,11 +156,13 @@ Renderer::currentFrame() const
return result;
}
#if defined(ENABLE_LIBWRAP) || (defined __APPLE__)
std::unique_ptr<AVFrame, void(*)(AVFrame*)>
Renderer::currentAVFrame() const
{
return pimpl_->renderer->currentAVFrame();
}
#endif
QSize
Renderer::size() const
......
......@@ -59,7 +59,6 @@ public:
int fps() const;
virtual Frame currentFrame() const override;
virtual ColorSpace colorSpace () const override;
virtual std::unique_ptr<AVFrame, void(*)(AVFrame*)> currentAVFrame() const override;
//Setters
void setShmPath(const QString& path);
......
......@@ -99,7 +99,9 @@ public:
virtual QSize size () const;
virtual QMutex* mutex () const;
virtual ColorSpace colorSpace () const = 0;
#if defined(ENABLE_LIBWRAP) || (defined __APPLE__)
virtual std::unique_ptr<AVFrame, void(*)(AVFrame*)> currentAVFrame() const = 0;
#endif
void setSize(const QSize& size) const;
Q_SIGNALS:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment