Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
5.9.8, 5.9.9
-
None
Description
Memory leaks while using functions QMediaPlaylist:: setCurrentIndex, QMediaPlayer::play.
MainWindow::MainWindow( QWidget *parent ) : QMainWindow( parent ) , ui( new Ui::MainWindow ) { ui->setupUi( this ); mp = new QMediaPlayer(); mp->setVolume( 50 ); pl = new QMediaPlaylist(); pl->addMedia( QUrl::fromLocalFile( "FILEPATH.wav" ) ); mp->setPlaylist( pl ); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { QTimer *timer = new QTimer(); connect( timer, &QTimer::timeout, this, [=]() { pl->setCurrentIndex( 0 ); // mp->play(); }); timer->start( 500 ); }
Output message:
shell\osshell\lmui\ntshrui\dll\shrengine.cpp(1487)\ntshrui.dll!00007FFDC62B94D0: (caller: 00007FFDC62E390F) ReturnHr(1) tid(13b4) 80004005 Unrecognized error
shell\osshell\lmui\ntshrui\dll\shrengine.cpp(1487)\ntshrui.dll!00007FFDC62B94D0: (caller: 00007FFDC62E390F) ReturnHr(2) tid(13b4) 80004005 Unrecognized error
shell\osshell\lmui\ntshrui\dll\shrengine.cpp(1487)\ntshrui.dll!00007FFDC62B94D0: (caller: 00007FFDC62E390F) ReturnHr(3) tid(13b4) 80004005 Unrecognized error
etc...
Attachments
For Gerrit Dashboard: QTBUG-82661 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
297043,3 | DirectShow: Fix DirectShowSampleGrabber->deleteLater() | dev | qt/qtmultimedia | Status: NEW | 0 | 0 |