summaryrefslogtreecommitdiff
path: root/pipewire-jack
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-21 16:15:45 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-21 16:15:45 +0200
commit2e06d0819b5a86229cbd0b4eb8862165bfe10880 (patch)
treef72c0f6f60d2c0534bfd4c8bfd3cb24cc15ba7d0 /pipewire-jack
parentb17ff6e2adc13d8490e532a7cd46326e4ce72756 (diff)
jack: only do transport when there is a driver
Diffstat (limited to 'pipewire-jack')
-rw-r--r--pipewire-jack/src/pipewire-jack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c
index c921d042..fcf8e31a 100644
--- a/pipewire-jack/src/pipewire-jack.c
+++ b/pipewire-jack/src/pipewire-jack.c
@@ -1015,9 +1015,9 @@ static inline uint32_t cycle_run(struct client *c)
check_buffer_frames(c);
check_sample_rate(c);
- c->jack_state = position_to_jack(driver, &c->jack_position);
-
if (SPA_LIKELY(driver)) {
+ c->jack_state = position_to_jack(driver, &c->jack_position);
+
if (SPA_UNLIKELY(activation->pending_sync)) {
if (c->sync_callback == NULL ||
c->sync_callback(c->jack_state, &c->jack_position, c->sync_arg))