Skip to content

Commit 3bce4c1

Browse files
committed
Revert "Update for HTSP Lib v0.0.1a20"
This reverts commit 7b215f3.
1 parent e91cc4f commit 3bce4c1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repositories {
6868
}
6969

7070
dependencies {
71-
compile 'ie.macinnes.htsp:android-htsp:v0.0.1a20'
71+
compile 'ie.macinnes.htsp:android-htsp:v0.0.1a19'
7272
// Used for testing local HTSP lib builds
7373
// compile(name: 'library-debug', ext: 'aar')
7474
compile fileTree(include: ['*.jar'], dir: 'libs')

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ public HtspDataSource(Context context, SimpleHtspConnection connection, String s
9393
throw new RuntimeException("OutOfMemoryError when allocating HtspDataSource buffer", e);
9494
}
9595

96-
mSubscriber = new Subscriber(mConnection);
97-
mSubscriber.addSubscriptionListener(this);
96+
mSubscriber = new Subscriber(mConnection, this);
9897
mConnection.addAuthenticationListener(mSubscriber);
9998
}
10099

@@ -169,9 +168,7 @@ public void close() throws IOException {
169168
mIsOpen = false;
170169

171170
mConnection.removeAuthenticationListener(mSubscriber);
172-
mSubscriber.removeSubscriptionListener(this);
173171
mSubscriber.unsubscribe();
174-
mSubscriber = null;
175172

176173
// Watch for memory leaks
177174
Application.getRefWatcher(mContext).watch(this);

0 commit comments

Comments
 (0)