diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-27 17:16:43 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-28 09:39:49 -0300 |
commit | 2e24978e2f5dfe249642678e92034ca79a82b50d (patch) | |
tree | bc414a7537114bf2a4ae7f36b3ae83f6ac4bf186 | |
parent | 3b4492c7e76b44790a4380b77fcb54868f83e39d (diff) |
videoconvert: videorate: videoscale: use template check for accept-caps
No need to do a find_transform() operation, they always accept
the same as the template
-rw-r--r-- | gst/videoconvert/gstvideoconvert.c | 2 | ||||
-rw-r--r-- | gst/videorate/gstvideorate.c | 1 | ||||
-rw-r--r-- | gst/videoscale/gstvideoscale.c | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 11d560d08..5537c3724 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -590,6 +590,8 @@ gst_video_convert_init (GstVideoConvert * space) space->matrix_mode = DEFAULT_PROP_MATRIX_MODE; space->gamma_mode = DEFAULT_PROP_GAMMA_MODE; space->primaries_mode = DEFAULT_PROP_PRIMARIES_MODE; + + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_TRANSFORM_SINK_PAD (space)); } void diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 9b9f260c6..9830224ca 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -595,6 +595,7 @@ gst_video_rate_init (GstVideoRate * videorate) videorate->to_rate_denominator = 0; gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (videorate), TRUE); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_TRANSFORM_SINK_PAD (videorate)); } /* flush the oldest buffer */ diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 20a79f7eb..b14e3e19c 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -291,6 +291,8 @@ gst_video_scale_init (GstVideoScale * videoscale) videoscale->dither = DEFAULT_PROP_DITHER; videoscale->envelope = DEFAULT_PROP_ENVELOPE; videoscale->gamma_decode = DEFAULT_PROP_GAMMA_DECODE; + + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_TRANSFORM_SINK_PAD (videoscale)); } static void |