mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 20:25:25 +00:00
avaudenc: Fix compile without gst debug
We can just re-use the encoder variable
This commit is contained in:
parent
f70f904210
commit
3a81f604fe
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue