mfvideosrc: Suppress more spammy debug messages
authorSeungha Yang <seungha@centricular.com>
Sat, 25 Jul 2020 20:42:27 +0000 (05:42 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 25 Jul 2020 20:48:48 +0000 (05:48 +0900)
The failure on compressed format (e.g., MJPG, H264 subtypes) is expected.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1468>

sys/mediafoundation/mediacapturewrapper.cpp

index ba045936e2a204c960fafda4bcbb8c72a3843e8b..90a02b9bcc63d09184399f829dbeb52af306d285 100644 (file)
@@ -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);