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:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user