Apsta
17th April 2012, 23:49
I have a simple code, that uses everybody...
Phonon::VideoWidget *vWidget = new Phonon::VideoWidget();
mediaObject = new Phonon::MediaObject(this);
Phonon::createPath(mediaObject, vWidget);
vWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAut o);
audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
Phonon::createPath(mediaObject, audioOutput);
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?
Phonon::VideoWidget *vWidget = new Phonon::VideoWidget();
mediaObject = new Phonon::MediaObject(this);
Phonon::createPath(mediaObject, vWidget);
vWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAut o);
audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
Phonon::createPath(mediaObject, audioOutput);
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?