Merge "TIF: Release passthrough session when HardwareSession is released" into nyc-dev

This commit is contained in:
Dongwon Kang
2016-02-17 19:27:58 +00:00
committed by Android (Google) Code Review

View File

@@ -1940,6 +1940,15 @@ public abstract class TvInputService extends Service {
* </ul> * </ul>
*/ */
public void onHardwareVideoUnavailable(int reason) { } public void onHardwareVideoUnavailable(int reason) { }
@Override
void release() {
if (mHardwareSession != null) {
mHardwareSession.release();
mHardwareSession = null;
}
super.release();
}
} }
/** @hide */ /** @hide */