Skip to content

Conversation

@mjneil
Copy link
Contributor

@mjneil mjneil commented Dec 4, 2019

When writing to a file, it is opened without truncating, so writing to the same file multiple times can result in an invalid MPD if a subsequent write was smaller than a previous.

@sysoftheworld
Copy link

Looks good to me, but would love to get @thomshutt or @stuarthicks to sign off on this.

@mjneil mjneil requested a review from stuarthicks December 4, 2019 21:06
Copy link
Contributor

@thomshutt thomshutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good spot @mjneil

@thomshutt thomshutt merged commit f9ad615 into master Dec 5, 2019
@thomshutt thomshutt deleted the truncate-write branch December 5, 2019 13:27
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.

4 participants