Commit 87af83d3 authored by Clement CHAVANCE's avatar Clement CHAVANCE

added a getMedia in the Generic and Clip renderers

this method will return a NULL pointer in the GenericRenderer class
parent 5422326a
......@@ -215,6 +215,11 @@ float ClipRenderer::getFps() const
return 0.0f;
}
Media* ClipRenderer::getMedia() const
{
return m_selectedMedia;
}
void ClipRenderer::previewWidgetCursorChanged( qint64 newFrame )
{
if ( m_isRendering == true )
......
......@@ -46,6 +46,7 @@ public:
virtual qint64 getLengthMs() const;
virtual qint64 getCurrentFrame() const;
virtual float getFps() const;
virtual Media* getMedia() const;
private:
void startPreview();
......
......@@ -89,6 +89,11 @@ public:
*/
virtual float getFps() const = 0;
virtual Media* getMedia() const
{
return 0;
}
/**
* \brief Return the length in frames
* \warning The returned value may not be accurate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment