examples: small improvements

Don't set EXCLUSIVE flag on video-play
This commit is contained in:
Wim Taymans 2020-03-20 11:24:29 +01:00
parent 67eb89689d
commit 4c80656a7b
2 changed files with 3 additions and 2 deletions

View file

@ -135,7 +135,9 @@ int main(int argc, char *argv[])
/* Now connect this filter. We ask that our process function is /* Now connect this filter. We ask that our process function is
* called in a realtime thread. */ * 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"); fprintf(stderr, "can't connect\n");
return -1; return -1;
} }

View file

@ -458,7 +458,6 @@ int main(int argc, char *argv[])
data.path ? (uint32_t)atoi(data.path) : PW_ID_ANY, data.path ? (uint32_t)atoi(data.path) : PW_ID_ANY,
PW_STREAM_FLAG_AUTOCONNECT | /* try to automatically connect this stream */ PW_STREAM_FLAG_AUTOCONNECT | /* try to automatically connect this stream */
PW_STREAM_FLAG_INACTIVE | /* we will activate ourselves */ 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 */ PW_STREAM_FLAG_MAP_BUFFERS, /* mmap the buffer data for us */
params, n_params)) /* extra parameters, see above */ < 0) { params, n_params)) /* extra parameters, see above */ < 0) {
fprintf(stderr, "can't connect: %s\n", spa_strerror(res)); fprintf(stderr, "can't connect: %s\n", spa_strerror(res));