Commit ef6edac6 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵

add some categorized debug output in player control code

parent 9f9a2d1f
Pipeline #43257 passed with stage
in 25 seconds
......@@ -81,6 +81,13 @@ ecm_qt_declare_logging_category(elisaLib_SOURCES
DEFAULT_SEVERITY Info
)
ecm_qt_declare_logging_category(elisaLib_SOURCES
HEADER "playerLogging.h"
IDENTIFIER "orgKdeElisaPlayer"
CATEGORY_NAME "org.kde.elisa.player"
DEFAULT_SEVERITY Info
)
if (LIBVLC_FOUND)
ecm_qt_declare_logging_category(elisaLib_SOURCES
HEADER "vlcLogging.h"
......
......@@ -10,6 +10,8 @@
#include "elisa_settings.h"
#include "playerLogging.h"
#include <QTimer>
#include <QDateTime>
......@@ -416,6 +418,7 @@ void ManageAudioPlayer::setCurrentPlayingForRadios(const QString &title, const Q
void ManageAudioPlayer::setPlayControlPosition(int playerPosition)
{
qCDebug(orgKdeElisaPlayer()) << "ManageAudioPlayer::setPlayControlPosition" << playerPosition;
Q_EMIT seek(playerPosition);
}
......@@ -436,6 +439,7 @@ void ManageAudioPlayer::setPersistentState(const QVariantMap &persistentStateVal
void ManageAudioPlayer::playerSeek(int position)
{
qCDebug(orgKdeElisaPlayer()) << "ManageAudioPlayer::playerSeek" << position;
Q_EMIT seek(position);
}
......
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