Skip to content

Commit 9cf169c

Browse files
committed
Drop HtspDataSource buffer from 15 to 10MB
1 parent 5e9e468 commit 9cf169c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/ie/macinnes/tvheadend/player/HtspDataSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
public class HtspDataSource implements DataSource, Subscriber.Listener, Closeable {
4343
private static final String TAG = HtspDataSource.class.getName();
44-
private static final int FIFTEEN_MB = 15*1024*1024;
44+
private static final int BUFFER_SIZE = 10*1024*1024;
4545

4646
public static class Factory implements DataSource.Factory {
4747
private static final String TAG = Factory.class.getName();
@@ -82,7 +82,7 @@ public HtspDataSource(Context context, SimpleHtspConnection connection, String s
8282
mConnection = connection;
8383
mStreamProfile = streamProfile;
8484

85-
mBuffer = ByteBuffer.allocate(FIFTEEN_MB); // 15 MB
85+
mBuffer = ByteBuffer.allocate(BUFFER_SIZE);
8686
mBuffer.limit(0);
8787

8888
mSubscriber = new Subscriber(mConnection, this);

0 commit comments

Comments
 (0)