diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-03-08 23:31:59 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-05-02 11:55:39 +0530 |
commit | 7aa84e82089a88a542f15cbf6f38c808b4f04db1 (patch) | |
tree | a61f118cfdf6c6b9a249cc1d40dd4108d62f1ab6 /src/pulsecore | |
parent | 322980e2e3844abf837dcc8cc5317406b3d8cb94 (diff) |
introspect: Get format of sink input
This gets the negotiated format of sink inputs in
pa_context_get_sink_input*(). Also prints the format in 'pactl list'.
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/protocol-native.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index f151bd21..59b87242 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -3153,6 +3153,8 @@ static void sink_input_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_tagstruct_put_boolean(t, has_volume); pa_tagstruct_put_boolean(t, s->volume_writable); } + if (c->version >= 21) + pa_tagstruct_put_format_info(t, s->format); } static void source_output_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_source_output *s) { |