当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - GStreamer-CRITICAL **: gst_mini_object_unref: assertion `GST_IS_MINI_OBJECT (mini_object)' failed

问题描述:

I have a vector of ofPtr (shared pointer) items that point to objects containing videos, in form of ofVideoPlayer objects. When the videos are done playing ('dead' variable set to true) i delete them and their reference by calling erase() on the vector.

vector<ofPtr<videoElement> >::iterator iter = videos.begin();

while (iter != videos.end()) {

(**iter).update();

if ((**iter).dead) {

iter = videos.erase(iter);

} else {

++iter;

}

}

The program runs fine (or seems to), yet every time the erase function is called, i get this output:

GStreamer-CRITICAL **: gst_mini_object_unref: assertion

`GST_IS_MINI_OBJECT (mini_object)' failed

I don't seem to get these output lines when i clear the whole vector at once with videos.clear(), which confuses me over if this is a gstreamer or pointer issue.

Also, I've tried with different video files and different codecs (H264, animation, photoJPEG) yet all show the same output line.

As the output line hasn't led to any actual problems yet, i am not too concerned, but i would like to understand where this is coming from.

System:

Linux, Ubuntu 12.04, Openframeworks with codeblocks (of_v0.8.0_linux64_release)

网友答案:

There is a known bug in GStreamer related to this which, in theory, should be fixed by installing gstreamer0.10-ffmpeg.

Source

分享给朋友:
您可能感兴趣的文章:
随机阅读: