audioencoder: Fix incorrect GST_LOG_OBJECT usage
authorArun Raghavan <arun@asymptotic.io>
Thu, 3 Dec 2020 11:50:07 +0000 (06:50 -0500)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 3 Dec 2020 12:46:33 +0000 (12:46 +0000)
GstBuffer is not a GstObject, so this causes a warning to be emitted.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/956>

gst-libs/gst/audio/gstaudioencoder.c

index 68cb069..5b9f741 100644 (file)
@@ -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;
   }