• Jacek Tomaszewski's avatar
    wasapi: Fixed corner-cases in mapping of channel mask · 0b7e541d
    Jacek Tomaszewski authored
    'channel-mask' field should not be put in caps if channel mask is 0x0
    Mapping WASAPI channel mask to GST equivalent was going only over
    first nChannels elements of wasapi_to_gst_pos array, translating, for
    example, WASAPI's 0x63f to GST's 0x3f instead of 0xc3f.
    When 'channel-mask' is specified as NULL, it signifies that there's
    need to do downmix or upmix and it makes caps negotiation with
    audioconvert element impossible. Just omit it.
    Signed-off-by: Nirbheek Chauhan's avatarNirbheek Chauhan <nirbheek@centricular.com>
gstwasapiutil.c 29.4 KB