Commit 25661f6b authored by Matthieu Gallien's avatar Matthieu Gallien

add a logging category for QtMultimedia support code

parent 98a7a7ae
......@@ -67,6 +67,13 @@ if (LIBVLC_FOUND)
audiowrapper_libvlc.cpp
)
else()
ecm_qt_declare_logging_category(elisaLib_SOURCES
HEADER "qtMultimediaLogging.h"
IDENTIFIER "orgKdeElisaPlayerQtMultimedia"
CATEGORY_NAME "org.kde.elisa.player.qtMultimedia"
DEFAULT_SEVERITY Info
)
set(elisaLib_SOURCES
${elisaLib_SOURCES}
audiowrapper_qtmultimedia.cpp
......
......@@ -17,6 +17,8 @@
#include "audiowrapper.h"
#include "qtMultimediaLogging.h"
#include <QTimer>
#include <QAudio>
......@@ -244,7 +246,7 @@ void AudioWrapper::savePosition(qint64 position)
if (!d->mHasSavedPosition) {
d->mHasSavedPosition = true;
d->mSavedPosition = position;
//qCDebug(orgKdeElisaPlayerVlc) << "AudioWrapper::savePosition" << "restore old position" << d->mSavedPosition;
qCDebug(orgKdeElisaPlayerQtMultimedia) << "AudioWrapper::savePosition" << "restore old position" << d->mSavedPosition;
}
}
......
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