mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +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 *
|
static GstCaps *
|
||||||
gst_ffmpegaudenc_getcaps (GstAudioEncoder * encoder, GstCaps * filter)
|
gst_ffmpegaudenc_getcaps (GstAudioEncoder * encoder, GstCaps * filter)
|
||||||
{
|
{
|
||||||
GstFFMpegAudEnc *ffmpegaudenc = (GstFFMpegAudEnc *) encoder;
|
|
||||||
GstCaps *caps = NULL;
|
GstCaps *caps = NULL;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (ffmpegaudenc, "getting caps");
|
GST_DEBUG_OBJECT (encoder, "getting caps");
|
||||||
|
|
||||||
/* audio needs no special care */
|
/* audio needs no special care */
|
||||||
caps = gst_audio_encoder_proxy_getcaps (encoder, NULL, filter);
|
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;
|
return caps;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue