mediarecorder.stop() - >等待传入的摄像机视频帧超时

时间:2013-08-13 07:18:14

标签: android android-camera surfaceview mediarecorder android-mediarecorder

对我来说,这对我来说有点痛苦。我正在运行我的应用程序的一些设备正在收到此错误。

基本上,应用程序开始录制,转到后台。当应用程序被带到前面时,它应该执行mediarecorder.stop()并重新开始录制。不知何故,有些设备存在问题。在那些情况下,我的黑屏和“超时等待传入的摄像机视频帧”消息。相机被锁定,即使我杀了应用程序也无法使用。

感谢任何帮助。我现在想要解决一个星期。


@Override
public void onPause() {
    editor.putInt("checkBackground", 1);  
    editor.commit();  

    if (inRecord){  
        editor.putInt("autoResume", 1);  
        editor.commit();  
    }  
    if (inPreview){  
        if (camera != null) {  
            camera.stopPreview();  
            camera.setPreviewCallback(null);  
            camera.release();  
            camera = null;  
        }  
        inPreview = false;  
        gpsManager.stopListening();  
    }  
    super.onPause();
}

经过一些调查,当应用程序进入后台时,我在LogCat中收到消息。


工作版

08-13 12:30:16.245: E/BufferQueue(1684): [SurfaceView] dequeueBuffer: SurfaceTexture has been abandoned!
08-13 12:30:16.245: E/CameraHal(1705): ExtIsp  ! CameraFillBufferDone dequeueNativeBuffer failed vendor/st-ericsson/variant/hardware/libcamera/STEExtIspInternal.cpp:836

带黑色屏幕的悬挂版本

08-13 12:12:01.385: E/BufferQueue(104): [SurfaceView] queueBuffer: SurfaceTexture has been abandoned!
08-13 12:12:01.385: E/SurfaceTextureClient(107): queueBuffer: error queuing buffer to SurfaceTexture, -19
08-13 12:12:01.385: E/CameraHAL(107): Surface::queueBuffer returned error -19
08-13 12:12:01.385: E/BufferQueue(104): [SurfaceView] dequeueBuffer: SurfaceTexture has been abandoned!
08-13 12:12:01.385: E/CameraHAL(107): (41b7c548)   hardware/ti/omap4xxx/camera/espresso/ANativeWindowDisplayAdapter.cpp:1199 handleFrameReturn - dequeueBuffer failed: No such device (19)

0 个答案:

没有答案