Skip to content

Commit

Permalink
audio: setup filters after codec
Browse files Browse the repository at this point in the history
Enc/Dec need to be setup first.
  • Loading branch information
cspiel1 committed May 27, 2024
1 parent 9bf24d8 commit c1b92e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,14 +1175,6 @@ int audio_update(struct audio *a)
return 0;
}

/* Audio filter */
if (!list_isempty(aufiltl)) {

err = aufilt_setup(a, aufiltl);
if (err)
return err;
}

if (dir & SDP_RECVONLY)
err |= audio_decoder_set(a, sc->data, sc->pt, sc->rparams);

Expand All @@ -1194,6 +1186,14 @@ int audio_update(struct audio *a)
return err;
}

/* Audio filter */
if (!list_isempty(aufiltl)) {

err = aufilt_setup(a, aufiltl);
if (err)
return err;
}

if (dir & SDP_RECVONLY) {
stream_enable_rx(a->strm, true);
}
Expand Down

0 comments on commit c1b92e6

Please sign in to comment.