Skip to content

Commit 56612c2

Browse files
committed
MultiStreamingDecoder log mime
1 parent a94e14b commit 56612c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AudioTools/AudioCodecs/StreamingDecoder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ class MultiStreamingDecoder : public StreamingDecoder {
747747
// Option 1: Use externally provided MIME source (e.g., from HTTP headers)
748748
// This is more efficient as it avoids reading and analyzing stream data
749749
mime = p_mime_source->mime();
750+
LOGI("mime from source: %s", mime);
750751
} else {
751752
// Option 2: Auto-detect MIME type by analyzing stream content
752753
// This requires reading a sample of data to identify the format
@@ -763,12 +764,11 @@ class MultiStreamingDecoder : public StreamingDecoder {
763764
// The detector examines file headers, magic numbers, etc.
764765
mime_detector.write(detection_buffer.data(), bytesRead);
765766
mime = mime_detector.mime();
767+
LOGI("mime from detector: %s", mime);
766768
}
767769

768770
// Process the detected/provided MIME type
769-
if (mime != nullptr) {
770-
LOGI("mime from mime_detector: %s", mime);
771-
771+
if (mime != nullptr) {
772772
// Delegate to the overloaded selectDecoder(mime) method to find
773773
// and initialize the appropriate decoder for this MIME type
774774
if (!selectDecoder(mime)) {

0 commit comments

Comments
 (0)