Bug 1861029 - set merge result to the codec support info and log result from the given location separately. r=media-playback-reviewers,padenot

Differential Revision: https://phabricator.services.mozilla.com/D192001
This commit is contained in:
alwu 2023-10-27 18:47:31 +00:00
Родитель 5b2e3e412c
Коммит 900d367030
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1640,8 +1640,12 @@ void ContentParent::BroadcastMediaCodecsSupportedUpdate(
// Generate + save support string for display in about:support
nsCString supportString;
media::MCSInfo::GetMediaCodecsSupportedString(supportString, aSupported);
media::MCSInfo::GetMediaCodecsSupportedString(supportString, support);
gfx::gfxVars::SetCodecSupportInfo(supportString);
// Print the support info only from the given location for debug purpose.
supportString.Truncate();
media::MCSInfo::GetMediaCodecsSupportedString(supportString, aSupported);
supportString.ReplaceSubstring("\n"_ns, ", "_ns);
LOGPDM("Broadcast support from '%s', support=%s",
RemoteDecodeInToStr(aLocation), supportString.get());