Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtpap committed Oct 6, 2024
1 parent 38b87d9 commit d5d51d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/pipewire-audio-capture-app.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,8 @@ static const char *choose_display_string(struct obs_pw_audio_capture_app *pwac,
return binary ? binary : app_name;
case MATCH_PRIORITY_APP_NAME:
return app_name ? app_name : binary;
default:
return NULL;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pipewire-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void on_process_cb(void *data)
out.data[i] = buf->datas[i].data;
}

if (s->info.sample_rate * s->pos->clock.rate_diff) {
if (s->info.sample_rate && s->pos->clock.rate_diff) {
/** Taken from PipeWire's implementation of JACK's jack_get_cycle_times
* (https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/0.3.52/pipewire-jack/src/pipewire-jack.c#L5639)
* which is used in the linux-jack plugin to correctly set the timestamp
Expand Down

0 comments on commit d5d51d4

Please sign in to comment.