Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for uncompressed media playback issue in libzip #179

Closed
wants to merge 1 commit into from

Conversation

nleme
Copy link
Contributor

@nleme nleme commented Jun 11, 2015

I had written the fix in this branch sometime ago. However, instead of taking this fix, I tried to update the libzip code in the Readium SDK to the latest version of that code, given that the libzip Open Source project is still alive and kicking. I discovered a problem, though: libzip evolved too much since we took it in the Readium SDK. The Readium SDK code uses some features that are no longer available in the current version of libzip: they have been replaced for more advanced versions, that would require a whole lot more work to make things work just the same. The problem, then, is that I do not have the time now for all the work that would be required to modify the Readium SDK so that it could use the latest version of the libzip code. On the other hand, we cannot simply leave this issue without a fix. So, I'm proposing that we merge my fix to libzip to develop, so that we unblock ourselves. At a later time, somebody that has the time for that can try again to take the latest libzip code.

When a file is marked "uncompressed" inside a ZIP file, the
current libzip code in the Readium SDK will take a different code
path. Unfortunately, there is a small bug in that code path that
results that, when dealing with an uncompressed ZIP entry,
the code will lose track of its correct position in the file. This
fix just adds some code so that it can keep track correctly of
the position inside the uncompressed file, and that allows the
playback of the uncompressed media to happen fine. Just a note:
by "uncompressed" we mean uncompressed from the ZIP file
point of view - evidently the media file, if it is a MPEG-4 file for
example, will be highly compressed.
@danielweck
Copy link
Member

Addressed issue: #177

@danielweck
Copy link
Member

@danielweck
Copy link
Member

Resolved: #177 (comment)

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.

3 participants