diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-09-11 12:08:11 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-09-11 12:08:11 -0400 |
commit | cb7fa417ab3f3268b5565571f79d5d6eba387bb7 (patch) | |
tree | 03b2de94cc2356b25659391fe59bc265febcef4c /gst/fsvideoanyrate | |
parent | 812768968f895deb3bf37e98b8a754a54ff631fb (diff) | |
download | farstream-cb7fa417ab3f3268b5565571f79d5d6eba387bb7.tar.gz |
fsvideoanyrate: Apply filter caps
Diffstat (limited to 'gst/fsvideoanyrate')
-rw-r--r-- | gst/fsvideoanyrate/videoanyrate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/fsvideoanyrate/videoanyrate.c b/gst/fsvideoanyrate/videoanyrate.c index 8086ed77..dd5f936e 100644 --- a/gst/fsvideoanyrate/videoanyrate.c +++ b/gst/fsvideoanyrate/videoanyrate.c @@ -137,6 +137,13 @@ gst_videoanyrate_transform_caps (GstBaseTransform *trans, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1, NULL); } + if (filter) + { + GstCaps *intersected = gst_caps_intersect (mycaps, filter); + gst_caps_unref (mycaps); + mycaps = intersected; + } + return mycaps; } |