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.