From 27ce682940abecb27a35ff400e5bd63bc5a0f8b1 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 3 Dec 2020 06:50:07 -0500 Subject: [PATCH] audioencoder: Fix incorrect GST_LOG_OBJECT usage GstBuffer is not a GstObject, so this causes a warning to be emitted. Part-of: --- gst-libs/gst/audio/gstaudioencoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index 68cb069..5b9f741 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -1265,7 +1265,7 @@ gst_audio_encoder_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) discont = GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT); if (G_UNLIKELY (discont)) { - GST_LOG_OBJECT (buffer, "marked discont"); + GST_LOG_OBJECT (enc, "marked discont"); enc->priv->discont = discont; } -- 2.7.4