Bug 411929 - Can not move or delete videos that were not played till the end
Summary: Can not move or delete videos that were not played till the end
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Video (show other bugs)
Version: 6.1.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-15 07:42 UTC by bert
Modified: 2019-09-16 08:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bert 2019-09-15 07:42:38 UTC
SUMMARY
For a while I occasionally had the problem I couldn't move or delete some videos. I just realized that this happens when I dont play them till the end, but skip to the next one half way through. 
When I go back to the video and play it till the end, the movie becomes deletable again.
This leads me to suspect the file is not properly closed internally when moving on halfway.

STEPS TO REPRODUCE
1. Click a video to let it play
2. Stop playback halfway by clicking an other video or picture
3. Try to move the video from step 1 to an other directory

OBSERVED RESULT
A digikam message window appears at the bottom with a message  similar to"could not move blabla/video to album blabla2/video" 

EXPECTED RESULT
The file is moved correctly

SOFTWARE/OS VERSIONS
Windows and linux 

ADDITIONAL INFORMATION
This bug exists for a while now in different versions of Digikam.

Note 1:Im a bit confused on the latest version of digikam, as in this bugreport template 6.3,6.4,6.5 and even 7.0 are options for the version, but on the website, the latest seems to be 6.2.

Note 2: It is a bit of burden on users to select the best component in this bugreport template. I have no clue in which of the 30+ components my bug originates. I'm afraid AdvancedRename gets a lot of bugs this way, just because it is at the top of the list. A default <Unknown> would help.
Good bug hunting

Bert
Comment 1 Maik Qualmann 2019-09-15 07:59:44 UTC
Git commit 425bd75300e549ec13b58b7145d1748016961ee6 by Maik Qualmann.
Committed on 15/09/2019 at 07:58.
Pushed by mqualmann into branch 'master'.

close video file after stop
FIXED-IN: 6.4.0

M  +2    -1    NEWS
M  +2    -1    core/libs/video/player/mediaplayerview.cpp
M  +2    -1    core/libs/video/player/slidevideo.cpp

https://invent.kde.org/kde/digikam/commit/425bd75300e549ec13b58b7145d1748016961ee6
Comment 2 bert 2019-09-16 08:01:58 UTC
Wow, that is fast. Much apreciated! Looking forward to 6.4 now even more.