Bug 1324530 - part 3: make codec methods that change state(start, stop, flush, release) synchronous. r=snorp draft
authorJohn Lin <jolin@mozilla.com>
Fri, 23 Dec 2016 16:25:43 +0800
changeset 456915 4b89cbe8e5874848af343321ae465a97bd2399e3
parent 456914 f7bcddf4d7b6177900be4f013849e84d396544c1
child 456916 48845198b720d9bc267b1f79aeb96130efb13b38
push id40642
push userbmo:jolin@mozilla.com
push dateFri, 06 Jan 2017 14:13:15 +0000
reviewerssnorp
bugs1324530
milestone53.0a1
Bug 1324530 - part 3: make codec methods that change state(start, stop, flush, release) synchronous. r=snorp MozReview-Commit-ID: EVjtpzX9dbD
mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl
--- a/mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl
+++ b/mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl
@@ -10,18 +10,18 @@ import android.view.Surface;
 import org.mozilla.gecko.media.FormatParam;
 import org.mozilla.gecko.media.ICodecCallbacks;
 import org.mozilla.gecko.media.Sample;
 
 interface ICodec {
     void setCallbacks(in ICodecCallbacks callbacks);
     boolean configure(in FormatParam format, inout Surface surface, int flags, in String drmStubId);
     boolean isAdaptivePlaybackSupported();
-    oneway void start();
-    oneway void stop();
-    oneway void flush();
-    oneway void release();
+    void start();
+    void stop();
+    void flush();
+    void release();
 
     Sample dequeueInput(int size);
     oneway void queueInput(in Sample sample);
 
     oneway void releaseOutput(in Sample sample, in boolean render);
 }