From 59e60203ba311d02fdd8da8ca9b6175cfacc6646 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 19 Aug 2022 04:44:48 +0900 Subject: [PATCH] h265decoder: Reorganize debug printing As of the MR https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2575 gst_h265_decoder_process_sps() is called per slice and it causes noisy debug message print. Reorganize related and the other debug printings at once. Part-of: --- .../gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c index 1514d2253a..1aea441668 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c @@ -507,6 +507,8 @@ gst_h265_decoder_process_sps (GstH265Decoder * self, GstH265SPS * sps) gst_h265_dpb_set_max_num_pics (priv->dpb, max_dpb_size); gst_h265_decoder_set_latency (self, sps, max_dpb_size); + + GST_DEBUG_OBJECT (self, "Set DPB max size %d", max_dpb_size); } if (sps->max_latency_increase_plus1[sps->max_sub_layers_minus1]) { @@ -515,8 +517,6 @@ gst_h265_decoder_process_sps (GstH265Decoder * self, GstH265SPS * sps) sps->max_latency_increase_plus1[sps->max_sub_layers_minus1] - 1; } - GST_DEBUG_OBJECT (self, "Set DPB max size %d", max_dpb_size); - return GST_FLOW_OK; } @@ -1237,8 +1237,6 @@ gst_h265_decoder_calculate_poc (GstH265Decoder * self, gint32 MaxPicOrderCntLsb = 1 << (sps->log2_max_pic_order_cnt_lsb_minus4 + 4); gboolean is_irap; - GST_DEBUG_OBJECT (self, "decode PicOrderCntVal"); - priv->prev_poc_lsb = priv->poc_lsb; priv->prev_poc_msb = priv->poc_msb; @@ -1284,7 +1282,7 @@ gst_h265_decoder_calculate_poc (GstH265Decoder * self, priv->prev_tid0pic_poc_msb = 0; } - GST_DEBUG_OBJECT (self, + GST_LOG_OBJECT (self, "PicOrderCntVal %d, (lsb %d)", picture->pic_order_cnt, picture->pic_order_cnt_lsb);