summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2013-07-25 08:22:45 +0200
committerAlessandro Decina <alessandro.d@gmail.com>2013-07-25 08:24:45 +0200
commit0df7af07ce0df6082851aeaa866666abb0945d67 (patch)
tree0a4fe4849f767385e9b5fc36aeec45c5ea87ea8d
parentc44a29bd53c6284670617e6ce8ded64be64d65f0 (diff)
osxaudiosink: intersect the probed caps with the filter passed to get_caps()
-rw-r--r--sys/osxaudio/gstosxaudiosink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/osxaudio/gstosxaudiosink.c b/sys/osxaudio/gstosxaudiosink.c
index 053a87137..8f01a3bad 100644
--- a/sys/osxaudio/gstosxaudiosink.c
+++ b/sys/osxaudio/gstosxaudiosink.c
@@ -315,6 +315,9 @@ gst_osx_audio_sink_getcaps (GstBaseSink * base, GstCaps * filter)
caps_string = gst_caps_to_string (sink->cached_caps);
GST_DEBUG_OBJECT (sink, "using cached caps: %s", caps_string);
g_free (caps_string);
+ if (filter)
+ return gst_caps_intersect_full (sink->cached_caps, filter,
+ GST_CAPS_INTERSECT_FIRST);
return gst_caps_ref (sink->cached_caps);
}