pd->channels };
pa_buffer_attr attr = { -1 };
+ pa_channel_map cmap;
+
+ pa_channel_map_init_extend(&cmap, pd->channels, PA_CHANNEL_MAP_WAVEEX);
st = avformat_new_stream(s, NULL);
pa_threaded_mainloop_wait(pd->mainloop);
}
- if (!(pd->stream = pa_stream_new(pd->context, pd->stream_name, &ss, NULL))) {
+ if (!(pd->stream = pa_stream_new(pd->context, pd->stream_name, &ss, &cmap))) {
ret = AVERROR(pa_context_errno(pd->context));
goto unlock_and_fail;
}
};
static const AVClass pulse_demuxer_class = {
- .class_name = "Pulse demuxer",
+ .class_name = "Pulse indev",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,