When using the LibVLC player, channels stream for about 10 seconds with some stuttering and then freeze completely. Switching to a different channel does not resolve the issue, however changing from LibVLC to 'Media Player' fixes the freeze and the stuttering (ExoPlayer won't even start, just shows the loading spinner)
Logs from tvheadend (below) show that the client unsubscribes at the same time as the freeze:
2016-11-01 10:35:53.709 subscription: 0EE3: "HTTP" subscribing on channel "BBC One", weight: 100, adapter: "Silicon Labs Si2168 : DVB-T #0", network: "UK Freeview", mux: "545.833MHz", service: "BBC ONE HD", profile="pass", hostname="172.16.2.170", username="room", client="android-tvheadend/0.2.50-SNAPSHOT (Linux;Android 5.1.1) VLC/3.0.0-git Vetinari LibVLC/3.0.0-git"
2016-11-01 10:36:19.214 subscription: 0EE3: "HTTP" unsubscribing from "BBC One", hostname="172.16.2.170", username="room", client="android-tvheadend/0.2.50-SNAPSHOT (Linux;Android 5.1.1) VLC/3.0.0-git Vetinari LibVLC/3.0.0-git"
11-01 10:47:28.921 15181-21291/ie.macinnes.tvheadend I/VLC: [ab24dbb4] mpeg4audio packetizer: AAC channels: 2 samplerate: 48000
11-01 10:47:28.942 15181-21291/ie.macinnes.tvheadend I/AudioTrack: set(): 0xab1ca390 streamType -1, sampleRate 48000, format 0x1, channelMask 0x3, frameCount 8192, flags #0, notificationFrames 0, sessionId 0, transferType 3
11-01 10:47:30.209 15181-21323/ie.macinnes.tvheadend I/OMXClient: Using client-side OMX mux.
11-01 10:47:30.234 15181-21323/ie.macinnes.tvheadend E/ACodec: [OMX.amlogic.avc.decoder.awesome] storeMetaDataInBuffers failed w/ err -2147483648
11-01 10:47:30.255 15181-21323/ie.macinnes.tvheadend W/ACodec: [OMX.amlogic.avc.decoder.awesome] setting nBufferCountActual to 8 failed: -1010
11-01 10:47:30.255 15181-21323/ie.macinnes.tvheadend W/ACodec: [OMX.amlogic.avc.decoder.awesome] setting nBufferCountActual to 7 failed: -1010
11-01 10:47:30.537 15181-21293/ie.macinnes.tvheadend W/AudioTrack: releaseBuffer() track 0xab1ca390 disabled due to previous underrun, restarting
11-01 10:47:53.343 15181-21290/ie.macinnes.tvheadend W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[34,tid=21290,Native,Thread*=0xab1c1350,peer=0x22e903a0,"mediacodec_jni"]
11-01 10:47:53.345 15181-21312/ie.macinnes.tvheadend E/NdkMediaCodec: sf error code: -38
11-01 10:47:53.441 15181-21312/ie.macinnes.tvheadend W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[37,tid=21312,Native,Thread*=0xab1686c0,peer=0x22e9f340,"VlcObject"]
11-01 10:47:53.583 15181-21291/ie.macinnes.tvheadend W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[31,tid=21291,Native,Thread*=0xab23b3a0,peer=0x22e2c0a0,"android_audiotrack"]
11-01 10:47:53.594 15181-21293/ie.macinnes.tvheadend W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[33,tid=21293,Native,Thread*=0xab1f1c80,peer=0x22e713a0,"android_audiotrack"]
11-01 10:47:53.594 15181-21278/ie.macinnes.tvheadend I/AudioTrack: ~AudioTrack, releasing session id from 15181 on behalf of 15181 mState/1
11-01 10:47:53.607 15181-21278/ie.macinnes.tvheadend W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[30,tid=21278,Native,Thread*=0xab210c68,peer=0x22e03100,"VlcObject"]