I have a simple code, that uses everybody...

Qt Code:
  1. Phonon::VideoWidget *vWidget = new Phonon::VideoWidget();
  2. mediaObject = new Phonon::MediaObject(this);
  3. Phonon::createPath(mediaObject, vWidget);
  4. vWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAuto);
  5. audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
  6. Phonon::createPath(mediaObject, audioOutput);
To copy to clipboard, switch view to plain text mode 


My problem is, that the third line (Phonon::createPath(mediaObject, vWidget)) takes about 5 seconds. Without it, my window shows immediately. But it is needed of course.
Is there any solution, how to speed up this?