Commit 3a81f604 authored by Edward Hervey's avatar Edward Hervey 🤘

avaudenc: Fix compile without gst debug

We can just re-use the encoder variable
parent f70f9042
......@@ -239,15 +239,14 @@ gst_ffmpegaudenc_flush (GstAudioEncoder * encoder)
static GstCaps *
gst_ffmpegaudenc_getcaps (GstAudioEncoder * encoder, GstCaps * filter)
{
GstFFMpegAudEnc *ffmpegaudenc = (GstFFMpegAudEnc *) encoder;
GstCaps *caps = NULL;
GST_DEBUG_OBJECT (ffmpegaudenc, "getting caps");
GST_DEBUG_OBJECT (encoder, "getting caps");
/* audio needs no special care */
caps = gst_audio_encoder_proxy_getcaps (encoder, NULL, filter);
GST_DEBUG_OBJECT (ffmpegaudenc, "audio caps, return %" GST_PTR_FORMAT, caps);
GST_DEBUG_OBJECT (encoder, "audio caps, return %" GST_PTR_FORMAT, caps);
return caps;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment