summaryrefslogtreecommitdiff
path: root/src/examples/export-source.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-05-14 13:07:01 +0200
committerWim Taymans <wtaymans@redhat.com>2018-05-14 13:07:01 +0200
commite02b3181daf03de85aff7cf57688da27024a7ee0 (patch)
tree2449db155804386bd8fcec48195be862513c0982 /src/examples/export-source.c
parentbed26040efd3481842104f0a643bbc96170599b9 (diff)
audio-session - >media-session
Also implement video in the media session Small cleanups Improve exclusive mode
Diffstat (limited to 'src/examples/export-source.c')
-rw-r--r--src/examples/export-source.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/export-source.c b/src/examples/export-source.c
index 9fdcf600..88e473ed 100644
--- a/src/examples/export-source.c
+++ b/src/examples/export-source.c
@@ -206,7 +206,7 @@ static int port_enum_formats(struct spa_node *node,
":", d->type.format_audio.format, "Ieu", d->type.audio_format.S16,
SPA_POD_PROP_ENUM(2, d->type.audio_format.S16,
d->type.audio_format.F32),
- ":", d->type.format_audio.layout, "i", SPA_AUDIO_LAYOUT_NON_INTERLEAVED,
+ ":", d->type.format_audio.layout, "i", SPA_AUDIO_LAYOUT_INTERLEAVED,
":", d->type.format_audio.channels, "iru", 2,
SPA_POD_PROP_MIN_MAX(1, INT32_MAX),
":", d->type.format_audio.rate, "iru", 44100,
@@ -538,7 +538,9 @@ static void make_node(struct data *data)
{
struct pw_properties *props;
- props = pw_properties_new(PW_NODE_PROP_AUTOCONNECT, "1", NULL);
+ props = pw_properties_new(PW_NODE_PROP_AUTOCONNECT, "1",
+ PW_NODE_PROP_EXCLUSIVE, "1",
+ NULL);
if (data->path)
pw_properties_set(props, PW_NODE_PROP_TARGET_NODE, data->path);