Commit 82225c51 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: Remove duplicated getter

parent 2ad8d7c7
......@@ -63,7 +63,7 @@ MediaCellView::MediaCellView( Clip* clip, QWidget *parent ) :
m_ui->clipCountLabel->hide();
m_ui->arrow->hide();
}
if ( clip->getMedia()->isMetadataComputed() == false )
if ( clip->getMedia()->source()->isParsed() == false )
{
m_ui->thumbnail->setEnabled( false );
connect( MetaDataManager::getInstance(), SIGNAL( startingComputing( const Media* )),
......
......@@ -97,7 +97,7 @@ ClipMetadataDisplayer::setWatchedClip( const Clip *clip )
m_watchedClip = clip;
m_watchedMedia = clip->getMedia();
connect( m_watchedClip, SIGNAL( unloaded( Clip* ) ), this, SLOT( clipDestroyed( Clip* ) ) );
if ( m_watchedMedia->isMetadataComputed() == true )
if ( m_watchedMedia->source()->isParsed() == true )
metadataUpdated();
else
{
......
......@@ -58,7 +58,6 @@ Media::Media(const QString &path )
: m_fileInfo( NULL )
, m_nbFrames( 0 )
, m_baseClip( NULL )
, m_metadataComputed( false )
, m_inWorkspace( false )
, m_snapshotImage( NULL )
{
......@@ -149,12 +148,6 @@ Media::source() const
return m_source;
}
bool
Media::isMetadataComputed() const
{
return m_metadataComputed;
}
void
Media::save( QXmlStreamWriter& project )
{
......
......@@ -104,8 +104,6 @@ public:
const Clip* baseClip() const { return m_baseClip; }
void setBaseClip( Clip* clip );
bool isMetadataComputed() const;
void save( QXmlStreamWriter& project );
bool isInWorkspace() const;
......@@ -127,7 +125,6 @@ protected:
InputType m_inputType;
QString m_fileName;
Clip* m_baseClip;
bool m_metadataComputed;
bool m_inWorkspace;
QString m_workspacePath;
......
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