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

Media: Remove old and useless methods.

parent 804906d9
......@@ -102,27 +102,6 @@ Media::computeFileType()
qDebug() << "What the hell is this extension? And how did you loaded it?!";
}
void
Media::flushVolatileParameters()
{
foreach ( const QString &defaultValue, m_volatileParameters )
m_vlcMedia->addOption( defaultValue.toUtf8().constData() );
m_volatileParameters.clear();
}
void
Media::addVolatileParam( const QString& param, const QString& defaultValue )
{
m_vlcMedia->addOption( param.toUtf8().constData() );
m_volatileParameters.append( defaultValue );
}
void
Media::addConstantParam( const QString& param )
{
m_vlcMedia->addOption( param.toUtf8().constData() );
}
const QFileInfo*
Media::fileInfo() const
{
......
......@@ -82,16 +82,6 @@ public:
Media( const QString& filePath );
virtual ~Media();
/**
* \brief This method adds a parameter that will stay constant though the whole life
* of this media (unless it is explicitely overided), even if it is cloned.
*/
void addConstantParam( const QString& param );
/**
* \brief This method will add a parameter that will be restored to defaultValue when the flushVolatileParameter is called
*/
void addVolatileParam( const QString& param, const QString& defaultValue );
void flushVolatileParameters();
LibVLCpp::Media *vlcMedia() { return m_vlcMedia; }
const QFileInfo *fileInfo() const;
......@@ -166,7 +156,6 @@ private:
protected:
LibVLCpp::Media* m_vlcMedia;
QString m_mrl;
QStringList m_volatileParameters;
QFileInfo* m_fileInfo;
qint64 m_lengthMS;
qint64 m_nbFrames;
......
......@@ -67,7 +67,7 @@ MetaDataWorker::run()
m_mediaPlayer->configureWaitForEvent( libvlc_MediaPlayerTimeChanged, cancel, &checkEvent );
m_media->addConstantParam( ":vout=dummy" );
m_media->vlcMedia()->addOption( ":vout=dummy" );
// In VLC 2.x we can't set the volume before the playback has started
// so just switch off the audio-output in any case.
m_mediaPlayer->setAudioOutput( "dummy" );
......
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