Skip to content

Commit efe7bce

Browse files
committed
MultiDecoder: addNotifyAudioChange at addDecoder
1 parent 8fc3fcd commit efe7bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/AudioCodecs/MultiDecoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class MultiDecoder : public AudioDecoder {
4040
/// Adds a decoder that will be selected by it's mime type
4141
void addDecoder(AudioDecoder& decoder, const char* mime) {
4242
DecoderInfo info{mime, &decoder};
43+
decoder.addNotifyAudioChange(*this);
4344
decoders.push_back(info);
4445
}
4546

@@ -64,7 +65,6 @@ class MultiDecoder : public AudioDecoder {
6465
result = true;
6566
// define output
6667
if (p_print!=nullptr){
67-
actual_decoder.decoder->addNotifyAudioChange(*this);
6868
actual_decoder.decoder->setOutput(*p_print);
6969
}
7070
}

0 commit comments

Comments
 (0)