From 4c80656a7b30b80ee9f86542063a3f3b1864d854 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 20 Mar 2020 11:24:29 +0100 Subject: [PATCH] examples: small improvements Don't set EXCLUSIVE flag on video-play --- src/examples/audio-dsp-filter.c | 4 +++- src/examples/video-play.c | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/examples/audio-dsp-filter.c b/src/examples/audio-dsp-filter.c index 72f65b68e..33b6aecc7 100644 --- a/src/examples/audio-dsp-filter.c +++ b/src/examples/audio-dsp-filter.c @@ -135,7 +135,9 @@ int main(int argc, char *argv[]) /* Now connect this filter. We ask that our process function is * called in a realtime thread. */ - if (pw_filter_connect(data.filter, PW_FILTER_FLAG_RT_PROCESS, NULL, 0) < 0) { + if (pw_filter_connect(data.filter, + PW_FILTER_FLAG_RT_PROCESS, + NULL, 0) < 0) { fprintf(stderr, "can't connect\n"); return -1; } diff --git a/src/examples/video-play.c b/src/examples/video-play.c index 1d9cd983b..711861192 100644 --- a/src/examples/video-play.c +++ b/src/examples/video-play.c @@ -458,7 +458,6 @@ int main(int argc, char *argv[]) data.path ? (uint32_t)atoi(data.path) : PW_ID_ANY, PW_STREAM_FLAG_AUTOCONNECT | /* try to automatically connect this stream */ PW_STREAM_FLAG_INACTIVE | /* we will activate ourselves */ - PW_STREAM_FLAG_EXCLUSIVE | /* require exclusive access */ PW_STREAM_FLAG_MAP_BUFFERS, /* mmap the buffer data for us */ params, n_params)) /* extra parameters, see above */ < 0) { fprintf(stderr, "can't connect: %s\n", spa_strerror(res));