avvidenc: use template subset check for accept-caps

It is faster than doing a query that propagates downstream and
should be enough
This commit is contained in:
Thiago Santos 2015-08-17 04:36:39 -03:00
parent ad215706ec
commit fa29036836

View file

@ -241,6 +241,8 @@ gst_ffmpegvidenc_init (GstFFMpegVidEnc * ffmpegenc)
GstFFMpegVidEncClass *klass =
(GstFFMpegVidEncClass *) G_OBJECT_GET_CLASS (ffmpegenc);
GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_ENCODER_SINK_PAD (ffmpegenc));
/* ffmpeg objects */
ffmpegenc->context = avcodec_alloc_context3 (klass->in_plugin);
ffmpegenc->picture = av_frame_alloc ();