Bug 1332177 - handle ICodec.configure() failure. r=jchen

MozReview-Commit-ID: KPhI04EA9n3

--HG--
extra : rebase_source : ceb40b48a1cb1e1a1458626c1ef2adbbc472d58e
This commit is contained in:
John Lin 2017-01-19 16:11:01 +08:00
parent 9f9d605eea
commit 25bf73baef

View File

@ -124,7 +124,9 @@ public final class CodecProxy {
boolean init(ICodec remote) {
try {
remote.setCallbacks(mCallbacks);
remote.configure(mFormat, mOutputSurface, 0, mRemoteDrmStubId);
if (!remote.configure(mFormat, mOutputSurface, 0, mRemoteDrmStubId)) {
return false;
}
remote.start();
} catch (RemoteException e) {
e.printStackTrace();