From a63539b213f340aea82bc496641f1d5e553eb64e Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 10 Jun 2021 23:35:38 +0900 Subject: [PATCH] d3d11decoder: Don't print error log when no DPB texture is available ... but we are flushing. The condition is quite expected situation when pipeline is in the middle of seeking operation. Part-of: --- sys/d3d11/gstd3d11decoder.cpp | 9 +++++++-- sys/d3d11/gstd3d11h264dec.cpp | 2 +- sys/d3d11/gstd3d11h265dec.cpp | 2 +- sys/d3d11/gstd3d11mpeg2dec.cpp | 2 +- sys/d3d11/gstd3d11vp8dec.cpp | 2 +- sys/d3d11/gstd3d11vp9dec.cpp | 2 +- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/sys/d3d11/gstd3d11decoder.cpp b/sys/d3d11/gstd3d11decoder.cpp index 33493fd265..5a8b04ab79 100644 --- a/sys/d3d11/gstd3d11decoder.cpp +++ b/sys/d3d11/gstd3d11decoder.cpp @@ -1178,8 +1178,13 @@ gst_d3d11_decoder_get_output_view_buffer (GstD3D11Decoder * decoder, ret = gst_buffer_pool_acquire_buffer (decoder->internal_pool, &buf, NULL); if (ret != GST_FLOW_OK || !buf) { - GST_ERROR_OBJECT (videodec, "Couldn't get buffer from pool, ret %s", - gst_flow_get_name (ret)); + if (ret != GST_FLOW_FLUSHING) { + GST_ERROR_OBJECT (videodec, "Couldn't get buffer from pool, ret %s", + gst_flow_get_name (ret)); + } else { + GST_DEBUG_OBJECT (videodec, "We are flusing"); + } + return NULL; } diff --git a/sys/d3d11/gstd3d11h264dec.cpp b/sys/d3d11/gstd3d11h264dec.cpp index 3e2787f383..08adb62374 100644 --- a/sys/d3d11/gstd3d11h264dec.cpp +++ b/sys/d3d11/gstd3d11h264dec.cpp @@ -782,7 +782,7 @@ gst_d3d11_h264_dec_new_picture (GstH264Decoder * decoder, view_buffer = gst_d3d11_decoder_get_output_view_buffer (self->d3d11_decoder, GST_VIDEO_DECODER (decoder)); if (!view_buffer) { - GST_ERROR_OBJECT (self, "No available output view buffer"); + GST_DEBUG_OBJECT (self, "No available output view buffer"); return FALSE; } diff --git a/sys/d3d11/gstd3d11h265dec.cpp b/sys/d3d11/gstd3d11h265dec.cpp index 04e5bd5099..1ca92064f3 100644 --- a/sys/d3d11/gstd3d11h265dec.cpp +++ b/sys/d3d11/gstd3d11h265dec.cpp @@ -780,7 +780,7 @@ gst_d3d11_h265_dec_new_picture (GstH265Decoder * decoder, view_buffer = gst_d3d11_decoder_get_output_view_buffer (self->d3d11_decoder, GST_VIDEO_DECODER (decoder)); if (!view_buffer) { - GST_ERROR_OBJECT (self, "No available output view buffer"); + GST_DEBUG_OBJECT (self, "No available output view buffer"); return FALSE; } diff --git a/sys/d3d11/gstd3d11mpeg2dec.cpp b/sys/d3d11/gstd3d11mpeg2dec.cpp index 4e903dbbad..da32f95a3e 100644 --- a/sys/d3d11/gstd3d11mpeg2dec.cpp +++ b/sys/d3d11/gstd3d11mpeg2dec.cpp @@ -463,7 +463,7 @@ gst_d3d11_mpeg2_dec_new_picture (GstMpeg2Decoder * decoder, view_buffer = gst_d3d11_decoder_get_output_view_buffer (self->d3d11_decoder, GST_VIDEO_DECODER (decoder)); if (!view_buffer) { - GST_ERROR_OBJECT (self, "No available output view buffer"); + GST_DEBUG_OBJECT (self, "No available output view buffer"); return FALSE; } diff --git a/sys/d3d11/gstd3d11vp8dec.cpp b/sys/d3d11/gstd3d11vp8dec.cpp index 2ff7d707bf..9c2e6ec1e7 100644 --- a/sys/d3d11/gstd3d11vp8dec.cpp +++ b/sys/d3d11/gstd3d11vp8dec.cpp @@ -375,7 +375,7 @@ gst_d3d11_vp8_dec_new_picture (GstVp8Decoder * decoder, view_buffer = gst_d3d11_decoder_get_output_view_buffer (self->d3d11_decoder, GST_VIDEO_DECODER (decoder)); if (!view_buffer) { - GST_ERROR_OBJECT (self, "No available output view buffer"); + GST_DEBUG_OBJECT (self, "No available output view buffer"); return FALSE; } diff --git a/sys/d3d11/gstd3d11vp9dec.cpp b/sys/d3d11/gstd3d11vp9dec.cpp index a49378ebfd..4ed54faae3 100644 --- a/sys/d3d11/gstd3d11vp9dec.cpp +++ b/sys/d3d11/gstd3d11vp9dec.cpp @@ -412,7 +412,7 @@ gst_d3d11_vp9_dec_new_picture (GstVp9Decoder * decoder, view_buffer = gst_d3d11_decoder_get_output_view_buffer (self->d3d11_decoder, GST_VIDEO_DECODER (decoder)); if (!view_buffer) { - GST_ERROR_OBJECT (self, "No available output view buffer"); + GST_DEBUG_OBJECT (self, "No available output view buffer"); return FALSE; }