GstEngine: Show debug information in error dialog
This commit is contained in:
parent
deecafa053
commit
c246b8f164
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue