Hi,

Lennart Poettering wrote:
On Mon, 16.03.09 20:14, Magnus Hjorth ([email protected]) wrote:
I'm trying to find a way in libpulse to query the sample format of the default source. Passing NULL to pa_context_get_source_info_by_name does not seem to work ("invalid argument").
Try passing "@DEFAULT_SOURCE@" as sink name in 
pa_context_get_source_info_by_name().
It seems that this doesn't work in the latest git version. The reason is this check in protocol-native.c, function command_get_info:

CHECK_VALIDITY(c->pstream, !name || pa_namereg_is_valid_name(name), tag, PA_ERR_INVALID);

pa_namereg_is_valid_name doesn't seem to like the @ character.

Regards,
Magnus
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

Reply via email to