[Bug 759389] fakesrc ! wasapisink and any other combination raises The stream is in the wrong format

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 28 15:55:59 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=759389

--- Comment #19 from Marcin Lewandowski <marcin at saepia.net> ---
I am doing some improvements in WASAPI (see bug 773638) and I would like to
also handle this case, but I do not want to reinvent the wheel.

I am mostly interested in fixing get_caps() so wasapisrc/wasapisink exposes
caps that can be handled by the soundcard for sure.

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.

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).

What do you think about that?

-- 
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