-
Notifications
You must be signed in to change notification settings - Fork 136
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
Version 4.1.4/4.1.5 breaks applications written in C (such as cmus) #47
Comments
I can confirm this also breaks Freeswitch mod_mp4v2 build:
|
Introducing API/ABI breaking changes in a patch release is really bad practice. This should have been done by adding a new function, like MP4Read2, with the additional argument. The way this has been done here, it not only breaks the API for C applications, but also breaks the ABI for every consumer of the MP4Read function, so the MP4v2 library cannot be updated from 4.1.3 to 4.1.4 or later without recompiling each and every dependency. I understand that this repository contains a libmp4v2 fork for internal use at TechSmith and you're just publishing it here to comply with the license. In that case, you can of course break things as you wish without warning and as often as you like. That's totally fine. The problem is, that this is not clearly stated anywhere and people started integrating this version of libmp4v2 into public repositories. The most prominent example is probably Arch Linux which ships with this version of libmp4v2. It would be great if you could add a clear statement to your Readme.md explaining that this version is for internal use at TechSmith and you will introduce breaking changes at your discretion. Maybe even add a warning to not use this fork in public software repositories. |
MacPorts recently updated its mp4v2 port from the old 2.0.0 version to this TechSmith fork, unaware that it was not fully backward-compatible, and is now encountering this incompatibility in build failures of software that uses mp4v2. This fork is the first result when searching GitHub or DuckDuckGo for "mp4v2". As such it is probably where many people will go when looking for this software. I agree with @enzo1982. I suggest that either this fork make itself compatible with historical mp4v2 once again, or else leave a prominent notice in the readme that this fork is not compatible with historical mp4v2 and/or that it is not intended to be used by the public. The introduction of C++ features into the public headers does seem like a bug / oversight though that should be corrected. doc/MP4.3 still says:
|
ShouldParseAtomCallback cb = nullptr should be ShouldParseAtomCallback cb DEFAULT(nullptr) for C to work |
TechSmith fork of mp4v2 needs gcc >= 5: TechSmith/mp4v2#47 As a result, the following build failure is raised since bump to version 5.0.1 in commit df22a9d: In file included from ./include/mp4v2/mp4v2.h:58:0, from ./libplatform/platform_posix.h:37, from ./libplatform/platform.h:24, from libplatform/impl.h:6: ./include/mp4v2/file.h:336:5: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] ShouldParseAtomCallback cb = nullptr ); ^ While a it, drop first patch which is not needed now that mp4v2 depends on gcc >= 5 Fixes: - http://autobuild.buildroot.org/results/178f1266396d44c6659a67d8e68cb99e36d544ea Signed-off-by: Fabrice Fontaine <[email protected]> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
Has this issue been fixed? |
No but the usual distros have headed to enzo1982/mp4v2 (https://mp4v2.org/) which is more aligned with broad use. |
@ryandesign Should we as well? |
The line below is only valid in C++ (introduced in commit 2637194), so if a C application tries to use the library it fails to compile, whereas with version 4.1.3 it works just fine. cmus in particular is affected by this change.
mp4v2/include/mp4v2/file.h
Line 336 in 67ed6f3
The text was updated successfully, but these errors were encountered: