渲染器线程在播放360视频时不调用SbDecodeTargetGetInfo()

时间:2017-06-29 09:27:22

标签: cobalt

在我们的设备上使用钴测试360视频时,应用程序渲染器线程会经常调用函数SbPlayerGetCurrentFrame(),但是没有SbDecodeTargetGetInfo()和SbDecodeTargetRelease(),即使我们通过函数SbPlayerGetCurrentFrame()返回SbDecodeTarget对象。在howto_decode_to_texture.md中,它告诉:

Once the application has acquired a valid SbDecodeTarget object through a call to SbPlayerGetCurrentFrame(), it will call SbDecodeTargetGetInfo() on it.

这是否意味着我们不在函数SbPlayerGetCurrentFrame()中返回有效的SbDecodeTarget,如果是这样,渲染器线程如何检查SbDecodeTarget是否有效?     Cobalt版本是10.56829。

1 个答案:

答案 0 :(得分:1)

我发现我们调用了SbPlayerGetCurrentFrame()而没有返回正确的解码目标,因此渲染器线程获取无效的目标对象并且不调用SbDecodeTargetGetInfo()和SbDecodeTargetRelease()