oss: simplify probed caps before returning them

Exposes all formats in the first structure if the
rest is the same for all of them.
This commit is contained in:
Tim-Philipp Müller 2014-06-13 09:52:03 +01:00
parent ffcb884551
commit d5b344ba74

View file

@ -149,6 +149,8 @@ gst_oss_helper_probe_caps (gint fd)
if (gst_caps_is_empty (caps)) {
/* fixme: make user-visible */
GST_WARNING ("Your OSS device could not be probed correctly");
} else {
caps = gst_caps_simplify (caps);
}
GST_DEBUG ("probed caps: %" GST_PTR_FORMAT, caps);