Skip to content

Commit

Permalink
vdisp/deck: fixed CID 464484
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jul 8, 2024
1 parent 3b47570 commit bc68c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_display/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1776,9 +1776,9 @@ static bool display_decklink_reconfigure_audio(void *state, int quant_samples, i
assert(quant_samples == 16 || quant_samples == 32);

const int bps = quant_samples / 8;
const unique_lock<mutex> lk(s->audio_reconf_lock);
if (bps != s->aud_desc.bps || sample_rate != s->aud_desc.sample_rate ||
channels != s->aud_desc.ch_count) {
const unique_lock<mutex> lk(s->audio_reconf_lock);
s->aud_desc = {quant_samples / 8, sample_rate, channels,
AC_PCM};
s->audio_reconfigure = true;
Expand Down

0 comments on commit bc68c87

Please sign in to comment.