forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-video/mpv: warn re softvol, non-fatal ffmpeg version check in 9999
Package-Manager: portage-2.3.0 Signed-off-by: Patrice Clement <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
media-video/mpv/files/mpv-0.18.1-make-ffmpeg-version-check-non-fatal.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
player: make ffmpeg/libav version check non-fatal | ||
|
||
We already enforce mpv rebuilds when ffmpeg/libav SONAME changes. | ||
|
||
diff --git a/player/main.c b/player/main.c | ||
index 88b60e1..1d12679 100644 | ||
--- a/player/main.c | ||
+++ b/player/main.c | ||
@@ -421,13 +421,12 @@ int mp_initialize(struct MPContext *mpctx, char **options) | ||
if (!print_libav_versions(mp_null_log, 0)) { | ||
// Using mismatched libraries can be legitimate, but even then it's | ||
// a bad idea. We don't acknowledge its usefulness and stability. | ||
- print_libav_versions(mpctx->log, MSGL_FATAL); | ||
- MP_FATAL(mpctx, "\nmpv was compiled against a different version of " | ||
- "FFmpeg/Libav than the shared\nlibrary it is linked against. " | ||
- "This is most likely a broken build and could\nresult in " | ||
- "misbehavior and crashes.\n\nmpv does not support this " | ||
- "configuration and will not run - rebuild mpv instead.\n"); | ||
- return -1; | ||
+ print_libav_versions(mpctx->log, MSGL_WARN); | ||
+ MP_WARN(mpctx, "\nmpv was compiled against a different version of " | ||
+ "FFmpeg/Libav than the shared\nlibrary it is linked against. " | ||
+ "This is most likely a broken build and could\nresult in " | ||
+ "misbehavior and crashes.\n\nUpstream does not support this " | ||
+ "configuration.\nPlease rebuild mpv in case of any problems.\n"); | ||
} | ||
|
||
if (opts->dump_stats && opts->dump_stats[0]) { |
This file contains 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