valbok / QtAVPlayer

Free and open-source Qt Media Player library based on FFmpeg, for Linux, Windows, macOS, iOS and Android.
MIT License
282 stars 54 forks source link

qml_video example did not stop after the window closed #411

Closed on-chip-man closed 10 months ago

on-chip-man commented 10 months ago

when I close the aml_vedio example ,the application does not stop, it seems that the QMutexLocker is locked and waiting forever

valbok commented 10 months ago

Hi, thanks for contributing. Could you please share is it Android or Windows? What Qt version is used? Thanks

on-chip-man commented 10 months ago

thanks! Qt 5.15.2, Windows 10, msvc64

on-chip-man commented 10 months ago

I have figured out that in QAVDemuxer::unload(), we need unlock before avformat_close_input(&d->ctx);, otherwise it will lock forever in decode_interrupt_cb

valbok commented 10 months ago

https://github.com/valbok/QtAVPlayer/pull/412