mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
osxaudiosink: intersect the probed caps with the filter passed to get_caps()
This commit is contained in:
parent
c44a29bd53
commit
0df7af07ce
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue