[Bug 759389] fakesrc ! wasapisink and any other combination raises The stream is in the wrong format
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Oct 31 10:27:12 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=759389
--- Comment #20 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Marcin Lewandowski from comment #19)
> I've read Thomas patches maybe I don't understand something but I think the
> right approach to implement get_caps() would have been to call
> IAudioClient::GetMixFormat which returns internal mix format used by WASAPI
> in the shared mode and return it as caps.
Sounds reasonable
> The second approach, that even might be better is to call
> IAudioClient::IsFormatSupported with given caps and return these caps if
> format matches or closest one (WASAPI returns information about closest
> matching format if there's no exact match).
That seems like it would require probing then. You would have to iterate over a
set of known formats in get_caps() and check if they are supported (and ideally
cache that information). Similar to what alsasink (or v4l2src) already does (so
yes, that's also an option).
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list