13 Sep
2023
13 Sep
'23
7:46 a.m.
Rémi Bernon (@rbernon) commented about dlls/winegstreamer/wg_muxer.c:
+ case WG_MAJOR_TYPE_VIDEO: + case WG_MAJOR_TYPE_VIDEO_CINEPAK: + case WG_MAJOR_TYPE_VIDEO_H264: + case WG_MAJOR_TYPE_VIDEO_WMV: + case WG_MAJOR_TYPE_VIDEO_INDEO: + muxer_sink_pad_name = "video_%u"; + break; + case WG_MAJOR_TYPE_AUDIO: + case WG_MAJOR_TYPE_AUDIO_MPEG1: + case WG_MAJOR_TYPE_AUDIO_MPEG4: + case WG_MAJOR_TYPE_AUDIO_WMA: + muxer_sink_pad_name = "audio_%u"; + break; + default: + goto out; + } I think you can use `stream_type_from_caps` instead of another switch.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3810#note_45158