mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
avaudenc: remove useless getcaps method
It just calls the exact same function as the default handler
This commit is contained in:
parent
427db7f484
commit
15ef18c3e1
1 changed files with 0 additions and 18 deletions
|
@ -61,8 +61,6 @@ static void gst_ffmpegaudenc_base_init (GstFFMpegAudEncClass * klass);
|
||||||
static void gst_ffmpegaudenc_init (GstFFMpegAudEnc * ffmpegaudenc);
|
static void gst_ffmpegaudenc_init (GstFFMpegAudEnc * ffmpegaudenc);
|
||||||
static void gst_ffmpegaudenc_finalize (GObject * object);
|
static void gst_ffmpegaudenc_finalize (GObject * object);
|
||||||
|
|
||||||
static GstCaps *gst_ffmpegaudenc_getcaps (GstAudioEncoder * encoder,
|
|
||||||
GstCaps * filter);
|
|
||||||
static gboolean gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder,
|
static gboolean gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder,
|
||||||
GstAudioInfo * info);
|
GstAudioInfo * info);
|
||||||
static GstFlowReturn gst_ffmpegaudenc_handle_frame (GstAudioEncoder * encoder,
|
static GstFlowReturn gst_ffmpegaudenc_handle_frame (GstAudioEncoder * encoder,
|
||||||
|
@ -162,7 +160,6 @@ gst_ffmpegaudenc_class_init (GstFFMpegAudEncClass * klass)
|
||||||
|
|
||||||
gstaudioencoder_class->start = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_start);
|
gstaudioencoder_class->start = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_start);
|
||||||
gstaudioencoder_class->stop = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_stop);
|
gstaudioencoder_class->stop = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_stop);
|
||||||
gstaudioencoder_class->getcaps = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_getcaps);
|
|
||||||
gstaudioencoder_class->flush = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_flush);
|
gstaudioencoder_class->flush = GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_flush);
|
||||||
gstaudioencoder_class->set_format =
|
gstaudioencoder_class->set_format =
|
||||||
GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_set_format);
|
GST_DEBUG_FUNCPTR (gst_ffmpegaudenc_set_format);
|
||||||
|
@ -238,21 +235,6 @@ gst_ffmpegaudenc_flush (GstAudioEncoder * encoder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps *
|
|
||||||
gst_ffmpegaudenc_getcaps (GstAudioEncoder * encoder, GstCaps * filter)
|
|
||||||
{
|
|
||||||
GstCaps *caps = NULL;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (encoder, "getting caps");
|
|
||||||
|
|
||||||
/* audio needs no special care */
|
|
||||||
caps = gst_audio_encoder_proxy_getcaps (encoder, NULL, filter);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (encoder, "audio caps, return %" GST_PTR_FORMAT, caps);
|
|
||||||
|
|
||||||
return caps;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
|
gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue