Commit 1f0d3b2b authored by Henrik Grunell's avatar Henrik Grunell Committed by Commit Bot

Add format tag info to CoreAudioUtil::GetSharedModeMixFormat DCHECK.

Will help understand why the DCHECK is hit.

Bug: 803056
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ibd00659e0ae1024cb863d90cd4e32e3f3f542a7c
Reviewed-on: https://chromium-review.googlesource.com/893318Reviewed-by: default avatarMax Morin <maxmorin@chromium.org>
Commit-Queue: Henrik Grunell <grunell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532868}
parent 88f5b767
...@@ -672,7 +672,8 @@ HRESULT CoreAudioUtil::GetSharedModeMixFormat( ...@@ -672,7 +672,8 @@ HRESULT CoreAudioUtil::GetSharedModeMixFormat(
return hr; return hr;
size_t bytes = sizeof(WAVEFORMATEX) + format_pcmex->Format.cbSize; size_t bytes = sizeof(WAVEFORMATEX) + format_pcmex->Format.cbSize;
DCHECK_EQ(bytes, sizeof(WAVEFORMATPCMEX)); DCHECK_EQ(bytes, sizeof(WAVEFORMATPCMEX))
<< "Format tag: 0x" << std::hex << format_pcmex->Format.wFormatTag;
memcpy(format, format_pcmex, bytes); memcpy(format, format_pcmex, bytes);
DVLOG(2) << *format; DVLOG(2) << *format;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment