From 9b128f1841980b99221a6e5d4ca2954e102ca9f2 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 25 May 2022 02:38:01 +0900 Subject: [PATCH] d3d11decoder: Don't print error log on negotiation failure It may not be a critical error and even expected when shutting down pipeline or flushing. Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h264dec.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11mpeg2dec.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp8dec.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp9dec.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp index 09adb42e64..2360470e6d 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp @@ -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; } } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h264dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h264dec.cpp index ea5b28632a..d307f68a4b 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h264dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h264dec.cpp @@ -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; } } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp index a8d7c4d9ec..12f5aaeb4d 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp @@ -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; } } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11mpeg2dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11mpeg2dec.cpp index 59f3c6b3bf..6a0ccb5834 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11mpeg2dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11mpeg2dec.cpp @@ -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; } } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp8dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp8dec.cpp index 8e5665856c..69d75716ce 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp8dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp8dec.cpp @@ -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; } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp9dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp9dec.cpp index 85ce5d4017..b547ce10a3 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp9dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11vp9dec.cpp @@ -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; }