Commit 56dfb98a authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Addind const

parent bddc28bd
......@@ -45,17 +45,20 @@ AudioClipWorkflow::~AudioClipWorkflow()
delete m_computedBuffers.dequeue();
}
void* AudioClipWorkflow::getLockCallback()
void*
AudioClipWorkflow::getLockCallback() const
{
return reinterpret_cast<void*>(&AudioClipWorkflow::lock);
}
void* AudioClipWorkflow::getUnlockCallback()
void*
AudioClipWorkflow::getUnlockCallback() const
{
return reinterpret_cast<void*>(&AudioClipWorkflow::unlock);
}
void* AudioClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
void*
AudioClipWorkflow::getOutput( ClipWorkflow::GetMode mode )
{
QMutexLocker lock( m_renderLock );
QMutexLocker lock2( m_computedBuffersMutex );
......
......@@ -54,9 +54,9 @@ class AudioClipWorkflow : public ClipWorkflow
AudioClipWorkflow( Clip* clip );
~AudioClipWorkflow();
void* getLockCallback();
void* getUnlockCallback();
virtual void* getOutput( ClipWorkflow::GetMode mode );
void *getLockCallback() const;
void *getUnlockCallback() const;
virtual void *getOutput( ClipWorkflow::GetMode mode );
protected:
virtual uint32_t getNbComputedBuffers() const;
......
......@@ -154,8 +154,8 @@ class ClipWorkflow : public QObject
void waitForCompleteInit();
virtual void* getLockCallback() = 0;
virtual void* getUnlockCallback() = 0;
virtual void* getLockCallback() const = 0;
virtual void* getUnlockCallback() const = 0;
LibVLCpp::MediaPlayer* getMediaPlayer();
......
......@@ -48,13 +48,13 @@ ImageClipWorkflow::initVlcOutput()
}
void*
ImageClipWorkflow::getLockCallback()
ImageClipWorkflow::getLockCallback() const
{
return reinterpret_cast<void*>( &ImageClipWorkflow::lock );
}
void*
ImageClipWorkflow::getUnlockCallback()
ImageClipWorkflow::getUnlockCallback() const
{
return reinterpret_cast<void*>( &ImageClipWorkflow::unlock );
}
......
......@@ -40,8 +40,8 @@ class ImageClipWorkflow : public VideoClipWorkflow
};
ImageClipWorkflow( Clip* clip );
void* getLockCallback();
void* getUnlockCallback();
void *getLockCallback() const;
void *getUnlockCallback() const;
virtual void *getOutput( ClipWorkflow::GetMode mode );
protected:
virtual void initVlcOutput();
......
......@@ -72,13 +72,13 @@ VideoClipWorkflow::initVlcOutput()
}
void*
VideoClipWorkflow::getLockCallback()
VideoClipWorkflow::getLockCallback() const
{
return reinterpret_cast<void*>(&VideoClipWorkflow::lock);
}
void*
VideoClipWorkflow::getUnlockCallback()
VideoClipWorkflow::getUnlockCallback() const
{
return reinterpret_cast<void*>( &VideoClipWorkflow::unlock );
}
......
......@@ -48,9 +48,9 @@ class VideoClipWorkflow : public ClipWorkflow
VideoClipWorkflow( Clip* clip );
~VideoClipWorkflow();
void* getLockCallback();
void* getUnlockCallback();
virtual void* getOutput( ClipWorkflow::GetMode mode );
void *getLockCallback() const;
void *getUnlockCallback() const;
virtual void *getOutput( ClipWorkflow::GetMode mode );
static const uint32_t nbBuffers = 3 * 30; //3 seconds with an average fps of 30
......
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