Guy1524 / wine

Personal Wine Repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong MF_MT_AUDIO_CHANNEL_MASK -> channel-mask conversion

nsivov opened this issue · comments

if (SUCCEEDED(IMFMediaType_GetUINT32(type, &MF_MT_AUDIO_CHANNEL_MASK, &channel_mask)))
{
gst_caps_set_simple(output, "channel-mask", GST_TYPE_BITMASK, channel_mask, NULL);
}

This should be using 64bit int, because it's GST_TYPE_BITMASK. Otherwise gst_caps_set_simple() crashes for me.

Thanks, updated.