[Qt-interest] player Memory growing.

Marek Bronowicki marek at cyberdeus.pl
Thu Dec 16 14:50:20 CET 2010


Hello

I have a big problem.

Attached is a mediaplayer class which is playing via gstreamer a movie 
or via qlabel an image or via webkit the flash files.

I'm trying to do my best but It's just too much I think for me. It's a 
part of much more, but this is the only class that when I disable it, 
there is no memory grow.

It starts from about 60MB of ram (it depends on a movie). After 8 hours 
it grows to 500MB (this depends of quantity of loop positions). I 
noticed, that even QLabel is growing a memory about 4-8KB per view, but 
a movie is a real disaster. It should play short movies in infinite 
loop, so I cannot reboot the process every time that it grows to heavy.

QT 4.6.2 on Ubuntu 10.04 x86.
My friend told me that for sure I'm not cleaning something right...

Please help, some guide, some anything that will stop this grow.
Code is not pro, because as You can see I'm not pro :)

Best Regards,
Marek Bronowicki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mediaplayer.cpp
Type: text/x-c++src
Size: 2519 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101216/7ac9d5c2/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mediaplayer.h
Type: text/x-chdr
Size: 572 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101216/7ac9d5c2/attachment-0001.bin 


More information about the Qt-interest-old mailing list