Skip to content

Commit 984c4b1

Browse files
committed
MultiDecoder setMimeSource
1 parent 2c20972 commit 984c4b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AudioTools/AudioCodecs/MultiDecoder.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ class MultiDecoder : public AudioDecoder {
102102
if (p_url_stream != nullptr) {
103103
// get content type from http header
104104
mime = p_url_stream->getReplyHeader(CONTENT_TYPE);
105+
if (mime) LOGI("mime from http request: %s", mime);
105106
}
106-
if (mime != nullptr) {
107+
if (mime == nullptr) {
107108
// use the mime detector
108109
mime_detector.write((uint8_t*)data, len);
109110
mime = mime_detector.mime();
111+
if (mime) LOGI("mime from mime_detector: %s", mime);
110112
}
111113
if (mime != nullptr) {
112114
// select the decoder based on the detemined mime type

0 commit comments

Comments
 (0)