mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
ffcb884551
commit
d5b344ba74
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue