From: Thiago Santos Date: Sun, 16 Aug 2015 17:13:05 +0000 (-0300) Subject: avvidenc: remove useless getcaps method X-Git-Tag: 1.19.3~499^2~445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=427db7f4840abe716c294fff90a3393480f456c7;p=platform%2Fupstream%2Fgstreamer.git avvidenc: remove useless getcaps method It just calls the exact same function as the default handler --- diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index 2215d5a4ae..dd393dd281 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -103,8 +103,6 @@ static gboolean gst_ffmpegvidenc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query); static gboolean gst_ffmpegvidenc_flush (GstVideoEncoder * encoder); -static GstCaps *gst_ffmpegvidenc_getcaps (GstVideoEncoder * encoder, - GstCaps * filter); static GstFlowReturn gst_ffmpegvidenc_handle_frame (GstVideoEncoder * encoder, GstVideoCodecFrame * frame); @@ -230,7 +228,6 @@ gst_ffmpegvidenc_class_init (GstFFMpegVidEncClass * klass) venc_class->stop = gst_ffmpegvidenc_stop; venc_class->finish = gst_ffmpegvidenc_finish; venc_class->handle_frame = gst_ffmpegvidenc_handle_frame; - venc_class->getcaps = gst_ffmpegvidenc_getcaps; venc_class->set_format = gst_ffmpegvidenc_set_format; venc_class->propose_allocation = gst_ffmpegvidenc_propose_allocation; venc_class->flush = gst_ffmpegvidenc_flush; @@ -283,19 +280,6 @@ gst_ffmpegvidenc_finalize (GObject * object) G_OBJECT_CLASS (parent_class)->finalize (object); } -static GstCaps * -gst_ffmpegvidenc_getcaps (GstVideoEncoder * encoder, GstCaps * filter) -{ - GstFFMpegVidEnc *ffmpegenc = (GstFFMpegVidEnc *) encoder; - GstCaps *caps = NULL; - - GST_DEBUG_OBJECT (ffmpegenc, "getting caps"); - - caps = gst_video_encoder_proxy_getcaps (encoder, NULL, filter); - GST_DEBUG_OBJECT (ffmpegenc, "return caps %" GST_PTR_FORMAT, caps); - return caps; -} - static gboolean gst_ffmpegvidenc_set_format (GstVideoEncoder * encoder, GstVideoCodecState * state)