Hi,

i've a problem using the phonon video player. I play a video on loop, but after some hours the application slow down. The memory usage is stable.

I use it in that way:
Qt Code:
  1. guiMain::guiMain(QWidget *parent) :
  2. QWidget(parent),
  3. ui(new Ui::guiMain)
  4. {
  5. ...
  6.  
  7. //video
  8. video=0;
  9. QString videoFileName;
  10. videoFileName.append(conf::Instance()->systemVideoPath);
  11. videoFileName.append(conf::Instance()->adsVideoFileName);
  12. QFile videoFile(videoFileName);
  13. videoRestartTime=new QTimer(this);
  14. if (videoFile.exists()){
  15. ui->videoPlayer->show();
  16. video = new Phonon::MediaSource(videoFileName);
  17. ui->videoPlayer->play(*video);
  18. connect(ui->videoPlayer->mediaObject(),SIGNAL(finished()), this,SLOT(videoRestart()));
  19. pictureEnable=false;
  20. videoEnable=true;
  21. }else{
  22. ui->videoPlayer->hide();
  23. ui->lblAds->show();
  24. pictureEnable=true;
  25. videoEnable=false;
  26. video=0;
  27. }
  28. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void guiMain::videoRestart(){
  2. if(videoEnable){
  3. if (video!=0){
  4. ui->videoPlayer->stop();
  5. ui->videoPlayer->load(*video);
  6. ui->videoPlayer->play();
  7. }else
  8. pErrorMng->alarmPush(302,warning,tr("Main Gui"), tr("Ads video not found"));
  9. }
  10. }
To copy to clipboard, switch view to plain text mode 

the ui->videoPlayer is a Phonon::videoPlayer

What is wrong?

Thanks