GstEngine: Show debug information in error dialog

This commit is contained in:
Jonas Kvinge 2022-04-14 20:56:57 +02:00
parent deecafa053
commit c246b8f164
4 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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();

View File

@ -1157,7 +1157,7 @@ void GstEnginePipeline::ErrorMessageReceived(GstMessage *msg) {
}
#endif
emit Error(id(), message, static_cast<int>(domain), code);
emit Error(id(), static_cast<int>(domain), code, message, debugstr);
}

View File

@ -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);