mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-28 00:46:37 +00:00
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:
parent
ad215706ec
commit
fa29036836
1 changed files with 2 additions and 0 deletions
|
@ -241,6 +241,8 @@ gst_ffmpegvidenc_init (GstFFMpegVidEnc * ffmpegenc)
|
||||||
GstFFMpegVidEncClass *klass =
|
GstFFMpegVidEncClass *klass =
|
||||||
(GstFFMpegVidEncClass *) G_OBJECT_GET_CLASS (ffmpegenc);
|
(GstFFMpegVidEncClass *) G_OBJECT_GET_CLASS (ffmpegenc);
|
||||||
|
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_ENCODER_SINK_PAD (ffmpegenc));
|
||||||
|
|
||||||
/* ffmpeg objects */
|
/* ffmpeg objects */
|
||||||
ffmpegenc->context = avcodec_alloc_context3 (klass->in_plugin);
|
ffmpegenc->context = avcodec_alloc_context3 (klass->in_plugin);
|
||||||
ffmpegenc->picture = av_frame_alloc ();
|
ffmpegenc->picture = av_frame_alloc ();
|
||||||
|
|
Loading…
Reference in a new issue