From d5b344ba745e8fc8708812bedbe881a71ea7d4a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 13 Jun 2014 09:52:03 +0100 Subject: [PATCH] oss: simplify probed caps before returning them Exposes all formats in the first structure if the rest is the same for all of them. --- sys/oss/gstosshelper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/oss/gstosshelper.c b/sys/oss/gstosshelper.c index 439171e9d2..e649e00829 100644 --- a/sys/oss/gstosshelper.c +++ b/sys/oss/gstosshelper.c @@ -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);