Scrub gstreamer error strings for url query strings.

Media URLs may include tokens or other auth info.
This commit is contained in:
Jim Broadus 2020-02-15 16:12:30 -08:00 committed by John Maguire
parent 5dd6d6725a
commit 5983ecfac0
1 changed files with 4 additions and 1 deletions

View File

@ -685,7 +685,10 @@ void GstEnginePipeline::ErrorMessageReceived(GstMessage* msg) {
return;
}
qLog(Error) << id() << debugstr;
for (const QString& l : debugstr.split("\n")) {
// Messages may contain URLs with auth info in query strings.
qLog(Error) << id() << Utilities::ScrubUrlQueries(l);
}
emit Error(id(), message, domain, code);
}