File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/AudioTools/AudioCodecs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -747,6 +747,7 @@ class MultiStreamingDecoder : public StreamingDecoder {
747
747
// Option 1: Use externally provided MIME source (e.g., from HTTP headers)
748
748
// This is more efficient as it avoids reading and analyzing stream data
749
749
mime = p_mime_source->mime ();
750
+ LOGI (" mime from source: %s" , mime);
750
751
} else {
751
752
// Option 2: Auto-detect MIME type by analyzing stream content
752
753
// This requires reading a sample of data to identify the format
@@ -763,12 +764,11 @@ class MultiStreamingDecoder : public StreamingDecoder {
763
764
// The detector examines file headers, magic numbers, etc.
764
765
mime_detector.write (detection_buffer.data (), bytesRead);
765
766
mime = mime_detector.mime ();
767
+ LOGI (" mime from detector: %s" , mime);
766
768
}
767
769
768
770
// Process the detected/provided MIME type
769
- if (mime != nullptr ) {
770
- LOGI (" mime from mime_detector: %s" , mime);
771
-
771
+ if (mime != nullptr ) {
772
772
// Delegate to the overloaded selectDecoder(mime) method to find
773
773
// and initialize the appropriate decoder for this MIME type
774
774
if (!selectDecoder (mime)) {
You can’t perform that action at this time.
0 commit comments