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

am: 37f3488c5c

* commit '37f3488c5c33baf2efbeefeb439b118c14ee0748':
  TIF: Release passthrough session when HardwareSession is released
This commit is contained in:
Dongwon Kang
2016-02-17 19:36:54 +00:00
committed by android-build-merger

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 */