[clutter-gst] video-sink: use filter when responding to get_caps()
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] video-sink: use filter when responding to get_caps()
- Date: Sat, 21 Jun 2014 21:04:42 +0000 (UTC)
commit 523cf8610cbea0574d92022f11f78a81a66d4774
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sat Jun 21 21:57:39 2014 +0100
video-sink: use filter when responding to get_caps()
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]