[Qt-interest] Problems deleting Phonon::MediaObject
Claus Tøndering
claus at tondering.dk
Wed Dec 17 17:15:38 CET 2008
I have a problem with Phonon in Qt 4.4.3 under Windows Vista.
In an application I create a VideoWidget, an AudioOutput and a MediaObject.
I connect everything with appropriate paths and call play() on the
MediaObject.
Everything works beautifully so far.
Several seconds after the video has finished playing, I disconnect the
paths, and delete the MediaObject.
Normally, this also works fine, but occasionally I get this error message
when trying to delete the MediaObject:
ASSERT: "!isEmpty()" in file
c:\qt\4.4.3\include\qtcore\../../src/corelib/tools/qlist.h, line 246
The reference is to the following function in the QList<T> class:
inline T& first() { Q_ASSERT(!isEmpty()); return *begin(); }
Since the behaviour varies, my guess is that this has something to do with
threads; however, the objects are created and deleted in the same thread.
Any ideas what the problem might be?
--
Claus Tondering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081217/21f90614/attachment.html
More information about the Qt-interest-old
mailing list