Skip to content

Commit

Permalink
audio: initialize ausrc_prm
Browse files Browse the repository at this point in the history
.duration was not initialized
  • Loading branch information
cspiel1 committed Sep 5, 2024
1 parent 98b9236 commit 2297510
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,14 +1055,14 @@ static int start_source(struct autx *tx, struct audio *a, struct list *ausrcl)
/* Start Audio Source */
if (!tx->ausrc && ausrc_find(ausrcl, NULL) && !a->hold) {

struct ausrc_prm prm;
size_t sz;
size_t psize_alloc;

prm.srate = srate_dsp;
prm.ch = channels_dsp;
prm.ptime = tx->ptime;
prm.fmt = tx->src_fmt;
struct ausrc_prm prm = {
.srate = srate_dsp,
.ch = channels_dsp,
.ptime = tx->ptime,
.fmt = tx->src_fmt
};

tx->ausrc_prm = prm;

Expand Down

0 comments on commit 2297510

Please sign in to comment.