diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-16 07:06:44 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-17 14:39:44 -0300 |
commit | a6dc5e19a288f5e135f3f3a13dc3748a7a250b47 (patch) | |
tree | cd185f3d2ba0f343e61e359624f49c1be1ccbda3 /gst | |
parent | 07ee52db5dbddf35ab22199a1960e9f5cc8aae73 (diff) | |
download | gstreamer-plugins-bad-a6dc5e19a288f5e135f3f3a13dc3748a7a250b47.tar.gz |
videoencoders: use template subset check for accept-caps
It is faster than doing a query that propagates downstream and
should be enough
Elements: openjpegenc, schroenc, webpenc, pnmenc
Diffstat (limited to 'gst')
-rw-r--r-- | gst/pnm/gstpnmenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/pnm/gstpnmenc.c b/gst/pnm/gstpnmenc.c index 1c059c8c9..8a0461ce5 100644 --- a/gst/pnm/gstpnmenc.c +++ b/gst/pnm/gstpnmenc.c @@ -111,6 +111,8 @@ gst_pnmenc_get_property (GObject * object, guint prop_id, GValue * value, static void gst_pnmenc_init (GstPnmenc * s) { + GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_ENCODER_SINK_PAD (s)); + /* Set default encoding as RAW as ASCII takes up 4 time more bytes */ s->info.encoding = GST_PNM_ENCODING_RAW; } |