native_window_set_buffers_geometry失败

时间:2013-03-12 17:03:47

标签: android

我正在尝试在OMAP 4460(Blaze Tablet-in ICS)中开发监控应用程序,充当客户端设备,从远程源渲染监控源。首先,监视源从摄像机远程流式传输,端口作为RTP数据包转发,这些数据包通过定制的RTP堆栈在OMAP 4460中接收和呈现。渲染时,我从解码器收到以下错误,说“表面纹理已被放弃,native_window _set_buffers_geometry失败”,更频繁。

以下是捕获的日志:

E/AwesomePlayer(  131): AwesomePlayer::onPrepareAsyncEvent-------- err = 0
E/AwesomePlayer(  131): AwesomePlayer::onPrepareAsyncEvent-------- OK = -430191887
I/OMXCodec(  131): [OMX.TI.DUCATI1.VIDEO.DECODER] AVC profile = 66 (Baseline), level = 31
E/OMXCodec(  131): set buffer size variable to : 307200
I/OMXCodec(  131): [OMX.TI.DUCATI1.VIDEO.DECODER] video dimensions are 640 x 480
I/OMXCodec(  131): [OMX.TI.DUCATI1.VIDEO.DECODER] Crop rect is 640 x 480 @ (0, 0)
E/SurfaceTexture(  128): [SurfaceView] setCrop: SurfaceTexture has been abandoned!
E/SurfaceTextureClient(  131): ISurfaceTexture::setCrop(...) returned No such device
E/SurfaceTexture(  128): [SurfaceView] setLayout: SurfaceTexture has been abandoned!
E/SurfaceTexture(  128): [SurfaceView] setCrop: SurfaceTexture has been abandoned!
E/SurfaceTextureClient(  131): ISurfaceTexture::setCrop(...) returned No such device
E/OMXCodec(  131): native_window_set_buffers_geometry failed: No such device (19)
E/ion     (  131): ioctl -1073460991 failed with code -1: Bad file number
E/ion     (  131): ioctl -1073460991 failed with code -1: Bad file number
D/DOMX    (  131): hardware/ti/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2208    PROXY_ComponentDeInit()    
D/DOMX    (  131): ERROR: failed check:(eError == OMX_ErrorNone) || (eError == OMX_ErrorNoMore) - returning error: 0x80001011 - Error returned from OMX API in ducati
D/DOMX    (  131): hardware/ti/domx/omx_core/src/OMX_Core.c:396    OMX_FreeHandle()    
D/DOMX    (  131): ERROR: Error From ComponentDeInit..
D/StackInterface(  131): AwesomePlayer::reset_l called ++

相机的SDP:

v=0

o=StreamingServer 3331435948 1116907222000 IN IP4 192.168.1.102

s=h264.mp4

c=IN IP4 239.0.0.00;/1

t=0 0

a=control:*

m=video 0 RTP/AVP 96

a=control:trackID=0

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAH9oCgPSbgIEAmBAAfQAAEZQve+Eg,aM48gA==

m=application 0 RTP/AVP 107

a=control:trackID=2

a=rtpmap:107 vnd.onvif.metadata/90000

我一直试图解决这个问题,但现在还无法找到问题。

请告知如何进一步解决这个问题。

此致

的Manoj

1 个答案:

答案 0 :(得分:0)

我的英语不好。

检查SurfaceTexture指针。 如果你定义sp< .....>在功能上,sp< .....>随着功能的结束而被废弃。