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

MetaDataManager: Fix missing mutex initialization

parent 8e3da8b3
......@@ -38,7 +38,7 @@ MetaDataManager::~MetaDataManager()
void
MetaDataManager::computeMediaMetadata( Media *media )
{
QMutexLocker lock( m_computingMutex );
QMutexLocker lock( &m_computingMutex );
m_mediaToCompute.enqueue( media );
if ( m_computeInProgress == false )
start();
......@@ -52,7 +52,7 @@ MetaDataManager::run()
{
Media* target;
{
QMutexLocker lock( m_computingMutex );
QMutexLocker lock( &m_computingMutex );
if ( m_mediaToCompute.isEmpty() == true )
{
m_computeInProgress = false;
......
......@@ -27,8 +27,8 @@
#include <QThread>
#include <QQueue>
#include <QMutex>
class QMutex;
class Media;
namespace LibVLCpp
{
......@@ -50,7 +50,7 @@ class MetaDataManager : public QThread, public Singleton<MetaDataManager>
virtual void run();
private:
QMutex *m_computingMutex;
QMutex m_computingMutex;
QQueue<Media*> m_mediaToCompute;
bool m_computeInProgress;
LibVLCpp::MediaPlayer *m_mediaPlayer;
......
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