diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2014-06-21 21:57:39 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2014-06-21 21:57:39 +0100 |
commit | 523cf8610cbea0574d92022f11f78a81a66d4774 (patch) | |
tree | 2e3fa908339e71ddc8abf86bb760549da287463f | |
parent | 05e30f8a99c9440def8155237d32525b4a283972 (diff) | |
download | clutter-gst-523cf8610cbea0574d92022f11f78a81a66d4774.tar.gz |
video-sink: use filter when responding to get_caps()
-rw-r--r-- | clutter-gst/clutter-gst-video-sink.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c index 7958b28..5b2e358 100644 --- a/clutter-gst/clutter-gst-video-sink.c +++ b/clutter-gst/clutter-gst-video-sink.c @@ -1771,8 +1771,11 @@ clutter_gst_video_sink_get_caps (GstBaseSink *bsink, if (sink->priv->caps == NULL) return NULL; - else - return gst_caps_ref (sink->priv->caps); + + if (filter != NULL) + return gst_caps_intersect_full (filter, sink->priv->caps, + GST_CAPS_INTERSECT_FIRST); + return gst_caps_ref (sink->priv->caps); } static gboolean |