问题描述
- 视频数据解析显示在surface上(android平台)
-
12-18 20:07:30.426: E/Surface(2159): dequeueBuffer failed (Unknown error 2147483646)
12-18 20:07:30.436: E/ViewRootImpl(2159): Could not lock surface
12-18 20:07:30.436: E/ViewRootImpl(2159): java.lang.IllegalArgumentException
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.Surface.nativeLockCanvas(Native Method)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.Surface.lockCanvas(Surface.java:250)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2476)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2437)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2281)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1892)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1005)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5750)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.Choreographer.doFrame(Choreographer.java:544)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.os.Handler.handleCallback(Handler.java:733)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.os.Handler.dispatchMessage(Handler.java:95)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.os.Looper.loop(Looper.java:136)
12-18 20:07:30.436: E/ViewRootImpl(2159): at android.app.ActivityThread.main(ActivityThread.java:5017)
12-18 20:07:30.436: E/ViewRootImpl(2159): at java.lang.reflect.Method.invokeNative(Native Method)
12-18 20:07:30.436: E/ViewRootImpl(2159): at java.lang.reflect.Method.invoke(Method.java:515)
12-18 20:07:30.436: E/ViewRootImpl(2159): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
12-18 20:07:30.436: E/ViewRootImpl(2159): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12-18 20:07:30.436: E/ViewRootImpl(2159): at dalvik.system.NativeStart.main(Native Method)
解决方案
楼主找到解决的方法了吗
时间: 2024-12-31 02:52:43