FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix ReplaceMp4Editor on Windows by vdeconinck · Pull Request #511 · jcodec/jcodec · GitHub

/ jcodec Public

Fix ReplaceMp4Editor on Windows - #511

Open
vdeconinck wants to merge 1 commit into
jcodec:masterfrom
vdeconinck:fix_replaceMp4Editor_Windows
Open

Fix ReplaceMp4Editor on Windows#511
vdeconinck wants to merge 1 commit into
jcodec:masterfrom
vdeconinck:fix_replaceMp4Editor_Windows

Conversation

Copy link
Copy Markdown

Could not build on Windows because MetadataEditorTest threw a NPE.
The reason is that on Windows, renameTo() fails if target file exists. ReplaceMp4Editor performs changes in a tmp file then calls renameTo() to replace the source with the edited version, but that call failed (causing the MetadataEditorTest to analyse the source file a second time).
This one-line fix deletes the source before calling renameTo().

… on Windows if target exists.

=> MetadataEditorTest now passes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL