summaryrefslogtreecommitdiff
path: root/media-video/mpv/files/mpv-0.19.0-make-ffmpeg-version-check-non-fatal.patch
blob: 7c8d5b44c825540d057676c49c0393aabf352bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 67dde3449..696d2e716 100644
--- a/player/main.c
+++ b/player/main.c
@@ -419,13 +419,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 could result in misbehavior and crashes.\n\n"
+                "Upstream does not support this configuration.\n"
+                "Please rebuild mpv in case of any problems.\n");
     }

     if (opts->dump_stats && opts->dump_stats[0]) {