[PATCH 1/2] winegstreamer: Support block_alignment attribute mapping.

Zebediah Figura (she/her) zfigura at codeweavers.com
Wed Oct 27 16:06:50 CDT 2021


On 10/27/21 15:45, Rémi Bernon wrote:
> On 10/27/21 10:30 PM, Zebediah Figura (she/her) wrote:
>> On 10/27/21 10:25, Rémi Bernon wrote:
>>> Planet Coaster adds this attribute to its media type when loading user
>>> music in some of the supported formats, and missing it will make media
>>> type matching only partially succeed.
>>>
>>> This will also be useful for WMA/XMA compressed formats.
>>>
>>> Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
>>
>> Can you please describe what exactly it's doing, in terms of specific 
>> Media Foundation APIs? As it is I can't tell why you're trying to 
>> translate this to and from winegstreamer formats.
>>
>> Note also that "block_align" is not used by anything in GStreamer for 
>> PCM formats.
>>
> 
> WMA/XMA formats caps need a block_align attribute, applications specify 
> it in the input media type of the MF transform, and it will need to be 
> passed to gstreamer decoder plugin input caps.
> 
> Yes, mapping it in this direction is not very useful right now but I 
> thought it was better to add the new attribute mapping support all in 
> the same change. I can split it if that matters.
> 
> FWIW most other attributes will have no use either in GStreamer for 
> non-PCM formats, audio/x-wma only has bitrate and block_align for 
> instance, does it really matters if we map them nonetheless here and 
> even maps them unconditionally to gst caps?

Right, although for the purposes of this patch I'm more interested in 
what Planet Coaster is doing.

If/when we need to translate WMA or other compressed formats directly to 
winegstreamer, we should deal with things like block_align then. 
Possibly we will want to add another struct to the union in wg_format 
instead of reusing the existing one.



More information about the wine-devel mailing list