Hello,

I have a problem in setting a video media object at correct aspect ratio:

Qt Code:
  1. Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(widget);
  2. videoWidget->setScaleMode(Phonon::VideoWidget::FitInView);
  3.  
  4. Phonon::MediaObject *mediaObject = new Phonon::MediaObject(widget);
  5. Phonon::Path path = Phonon::createPath(mediaObject, videoWidget);
  6. mediaObject->enqueue(Phonon::MediaSource("movie.avi"));
  7. videoWidget->setGeometry(0,0,500,500);
  8. videoWidget->setAspectRatio(Phonon::VideoWidget::AspectRatio4_3);
  9. videoWidget->hide();
  10.  
  11. // ... some unrelated code
  12.  
  13. videoWidget->show();
  14. //videoWidget->setScaleMode(Phonon::VideoWidget::FitInView);
  15. //videoWidget->setAspectRatio(Phonon::VideoWidget::AspectRatio4_3);
  16. mediaObject->play();
To copy to clipboard, switch view to plain text mode 

For the first video widget, it works correctly, but when creating additional video widgets, the aspect ratio is ignored (actually, sometime it is, sometimes it isn't). I use the same movie for all calls. It didn't work even when i tried to set the scale mode and the aspect ratio again, after the show() call (the commeted lines).