mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1332177 - handle ICodec.configure() failure. r=jchen
MozReview-Commit-ID: KPhI04EA9n3 --HG-- extra : rebase_source : ceb40b48a1cb1e1a1458626c1ef2adbbc472d58e
This commit is contained in:
parent
9f9d605eea
commit
25bf73baef
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user