Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83771

Qt 5.12.8 multimedia video player holds lock after stop called

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.12.8
    • Fix Version/s: None
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      Windows [Version 10.0.18363.815] 64 bit home Edition.
      Qt 5.12.8, 5.12.7, 5.14.1, 5.14.2
      Compiler: MSVC2017 64bit
      MS C++ Compiler 15.0 (amd64)
      I am using qmake
      I do have cmake onboard: 3.17.0 (but I never use it really)
    • Platform/s:
      Windows

      Description

      I stumbled on issue while learning/tweaking the official Qt example:

      C:\Qt\Qt5.12.8\Examples\Qt-5.12.8\multimediawidgets\player

       

      In 5.12.7 : I had made a QShortcut for the delete key to delete the currently playing video.  In short, the delete key, stops the player, clears the playlist, then delete's the file.  This worked. 

       

      I recently upgraded to 5.12.8 and now, my delete shortcut action no longer works.  But it does in 5.12.7.

       

      So I downloaded, installed 5.14.1 and 5.14.2 and they work as well.

       

      I even went so far as to simply stop the player with examples' stop button and use Windows explorer to delete the file and will not. 

       

      I have attached the player.h and player.cpp files which are from Qt's official example and modified so you can drop them in on your end and build and test for yourself and see the issue at hand.  Just browse and play a video, while its playing, hit your delete key and you'll see the qdebug print if it deleted the file or not.

       

      Thank you Qt and your consideration of this matter.

       

       

        Attachments

        1. player.cpp
          18 kB
        2. player.h
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            valentyn.doroshchuk Valentyn Doroshchuk
            Reporter:
            walterwatson walter watson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes