1

我正在使用 MLT 框架为我的应用程序创建一个视频播放器,用户可以在其中为特定任务执行一些小型视频编辑。我也在为这个应用程序使用 QT。我从基本上可以找到的 BuildOnMe 示例开始这里找到

问题是播放器在一段时间后在视频上崩溃(总是不同)。

有一次我正在打印帧数以查看它是否在相同的数字上(不是),当它崩溃时它打印了这个:[mlt_pool] out of memory

我需要为 mlt 处理内存管理吗?

我正在使用 QT5.3

如果有帮助,我的代码可以在这里找到(我没有添加 .h)

4

1 回答 1

1

I found out the problem was from the Mlt::Frame created in the function on_frame_show

This frame needs to be deleted, in the example it is used on the mac openGL class. But on windows since it's never used it'll quickly build up on the memory.

于 2015-04-10T16:27:25.577 回答