avvidenc: remove useless getcaps method
authorThiago Santos <thiagoss@osg.samsung.com>
Sun, 16 Aug 2015 17:13:05 +0000 (14:13 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Sun, 16 Aug 2015 17:13:05 +0000 (14:13 -0300)
It just calls the exact same function as the default handler

ext/libav/gstavvidenc.c

index 2215d5a4aeae5af0198ec192a16c90e6542c1d04..dd393dd2815b5e7b818dbc63807d1afa2e138d92 100644 (file)
@@ -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)