diff --git a/src/engine/gstengine.cpp b/src/engine/gstengine.cpp index 86f3ff6d6..08d75f790 100644 --- a/src/engine/gstengine.cpp +++ b/src/engine/gstengine.cpp @@ -538,7 +538,7 @@ void GstEngine::EndOfStreamReached(const int pipeline_id, const bool has_next_tr } -void GstEngine::HandlePipelineError(const int pipeline_id, const QString &message, const int domain, const int error_code) { +void GstEngine::HandlePipelineError(const int pipeline_id, const int domain, const int error_code, const QString &message, const QString &debugstr) { if (!current_pipeline_.get() || current_pipeline_->id() != pipeline_id) return; @@ -563,6 +563,7 @@ void GstEngine::HandlePipelineError(const int pipeline_id, const QString &messag } emit Error(message); + emit Error(debugstr); } diff --git a/src/engine/gstengine.h b/src/engine/gstengine.h index c82c6a2f4..6601a343a 100644 --- a/src/engine/gstengine.h +++ b/src/engine/gstengine.h @@ -113,7 +113,7 @@ class GstEngine : public Engine::Base, public GstBufferConsumer { private slots: void EndOfStreamReached(const int pipeline_id, const bool has_next_track); - void HandlePipelineError(const int pipeline_id, const QString &message, const int domain, const int error_code); + void HandlePipelineError(const int pipeline_id, const int domain, const int error_code, const QString &message, const QString &debugstr); void NewMetaData(const int pipeline_id, const Engine::SimpleMetaBundle &bundle); void AddBufferToScope(GstBuffer *buf, const int pipeline_id, const QString &format); void FadeoutFinished(); diff --git a/src/engine/gstenginepipeline.cpp b/src/engine/gstenginepipeline.cpp index 9138f7aa5..6678c0417 100644 --- a/src/engine/gstenginepipeline.cpp +++ b/src/engine/gstenginepipeline.cpp @@ -1157,7 +1157,7 @@ void GstEnginePipeline::ErrorMessageReceived(GstMessage *msg) { } #endif - emit Error(id(), message, static_cast(domain), code); + emit Error(id(), static_cast(domain), code, message, debugstr); } diff --git a/src/engine/gstenginepipeline.h b/src/engine/gstenginepipeline.h index 0fd14b72f..b5b7a59ff 100644 --- a/src/engine/gstenginepipeline.h +++ b/src/engine/gstenginepipeline.h @@ -124,7 +124,7 @@ class GstEnginePipeline : public QObject { void SetVolumeModifier(qreal mod); signals: - void Error(int pipeline_id, QString message, const int domain, const int error_code); + void Error(int pipeline_id, int domain, int error_code, QString message, QString debug); void EndOfStreamReached(int pipeline_id, bool has_next_track); void MetadataFound(int pipeline_id, const Engine::SimpleMetaBundle &bundle);