d3d11decoder: Don't print error log on negotiation failure
authorSeungha Yang <seungha@centricular.com>
Tue, 24 May 2022 17:38:01 +0000 (02:38 +0900)
committerSeungha Yang <seungha@centricular.com>
Tue, 24 May 2022 20:46:40 +0000 (05:46 +0900)
It may not be a critical error and even expected when shutting down
pipeline or flushing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2483>

subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h264dec.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11mpeg2dec.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp8dec.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp9dec.cpp

index 09adb42..2360470 100644 (file)
@@ -690,7 +690,7 @@ gst_d3d11_av1_dec_new_sequence (GstAV1Decoder * decoder,
     }
 
     if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (self))) {
-      GST_ERROR_OBJECT (self, "Failed to negotiate with downstream");
+      GST_WARNING_OBJECT (self, "Failed to negotiate with downstream");
       return GST_FLOW_NOT_NEGOTIATED;
     }
   }
index ea5b286..d307f68 100644 (file)
@@ -461,7 +461,7 @@ gst_d3d11_h264_dec_new_sequence (GstH264Decoder * decoder,
     }
 
     if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (self))) {
-      GST_ERROR_OBJECT (self, "Failed to negotiate with downstream");
+      GST_WARNING_OBJECT (self, "Failed to negotiate with downstream");
       return GST_FLOW_NOT_NEGOTIATED;
     }
   }
index a8d7c4d..12f5aae 100644 (file)
@@ -413,7 +413,7 @@ gst_d3d11_h265_dec_new_sequence (GstH265Decoder * decoder,
     }
 
     if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (self))) {
-      GST_ERROR_OBJECT (self, "Failed to negotiate with downstream");
+      GST_WARNING_OBJECT (self, "Failed to negotiate with downstream");
       return GST_FLOW_NOT_NEGOTIATED;
     }
   }
index 59f3c6b..6a0ccb5 100644 (file)
@@ -401,7 +401,7 @@ gst_d3d11_mpeg2_dec_new_sequence (GstMpeg2Decoder * decoder,
     }
 
     if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (self))) {
-      GST_ERROR_OBJECT (self, "Failed to negotiate with downstream");
+      GST_WARNING_OBJECT (self, "Failed to negotiate with downstream");
       return GST_FLOW_NOT_NEGOTIATED;
     }
   }
index 8e56658..69d7571 100644 (file)
@@ -334,7 +334,7 @@ gst_d3d11_vp8_dec_new_sequence (GstVp8Decoder * decoder,
   }
 
   if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (self))) {
-    GST_ERROR_OBJECT (self, "Failed to negotiate with downstream");
+    GST_WARNING_OBJECT (self, "Failed to negotiate with downstream");
     return GST_FLOW_NOT_NEGOTIATED;
   }
 
index 85ce5d4..b547ce1 100644 (file)
@@ -388,7 +388,7 @@ gst_d3d11_vp9_dec_new_sequence (GstVp9Decoder * decoder,
   }
 
   if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (self))) {
-    GST_ERROR_OBJECT (self, "Failed to negotiate with downstream");
+    GST_WARNING_OBJECT (self, "Failed to negotiate with downstream");
     return GST_FLOW_NOT_NEGOTIATED;
   }