Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7dea9aaf authored by Andreas Huber's avatar Andreas Huber
Browse files

Fetch at least 192KB to avoid our mp3 sniffer from blocking on data.

Change-Id: Icb10c129249bb9b69e91f6633a385840c94efa59
related-to-bug: 5666532
parent 791a3183
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2021,9 +2021,9 @@ status_t AwesomePlayer::finishSetDataSource_l() {

                mLock.unlock();

                // Initially make sure we have at least 128 bytes for the sniff
                // Initially make sure we have at least 192 KB for the sniff
                // to complete without blocking.
                static const size_t kMinBytesForSniffing = 128;
                static const size_t kMinBytesForSniffing = 192 * 1024;

                off64_t metaDataSize = -1ll;
                for (;;) {