From 64d384ff29dcbaf39f2d68a515bb1784e52cd55a Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 19 Jun 2023 18:06:35 +0200 Subject: [PATCH] Fix logging of unsupported video type BUG=webrtc:15257 Change-Id: I9b51ed39d6010f49f307a40b20eec801eaf088bd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/308881 Reviewed-by: Ilya Nikolaevskiy Commit-Queue: Philipp Hancke Cr-Commit-Position: refs/heads/main@{#40317} --- modules/video_capture/windows/sink_filter_ds.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/video_capture/windows/sink_filter_ds.cc b/modules/video_capture/windows/sink_filter_ds.cc index 0c5acb668d..290a45affb 100644 --- a/modules/video_capture/windows/sink_filter_ds.cc +++ b/modules/video_capture/windows/sink_filter_ds.cc @@ -254,7 +254,9 @@ class MediaTypesEnum : public IEnumMediaTypes { std::next(it)); } } else { - RTC_LOG(LS_WARNING) << "Unsupported video type: " << *it + RTC_LOG(LS_WARNING) << "Unsupported video type: " + << rtc::ToString( + static_cast(capability_.videoType)) << ", using default preference list."; } }