From 42de98fd42a6a549453f56a5bb8a72daffc7afd6 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 26 Jul 2020 05:42:27 +0900 Subject: [PATCH] mfvideosrc: Suppress more spammy debug messages The failure on compressed format (e.g., MJPG, H264 subtypes) is expected. Part-of: --- sys/mediafoundation/mediacapturewrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/mediafoundation/mediacapturewrapper.cpp b/sys/mediafoundation/mediacapturewrapper.cpp index ba045936e2..90a02b9bcc 100644 --- a/sys/mediafoundation/mediacapturewrapper.cpp +++ b/sys/mediafoundation/mediacapturewrapper.cpp @@ -174,7 +174,7 @@ GstWinRTMediaDescription::Fill(HString &source_id, format = gst_media_capture_subtype_to_video_format (subtype); if (format.empty()) { - GST_FIXME ("Unhandled subtype %s", subtype.c_str()); + GST_DEBUG ("Unhandled subtype %s", subtype.c_str()); return E_FAIL; } @@ -363,7 +363,7 @@ GstWinRTMediaFrameSourceGroup::Fill GstWinRTMediaDescription media_desc; hr = media_desc.Fill(source_id, desc); - if (!gst_mf_result(hr)) + if (FAILED (hr)) continue; source_list_.push_back(media_desc);