summaryrefslogtreecommitdiff
path: root/multimedia/mpv/patches/patch-player_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mpv/patches/patch-player_main.c')
-rw-r--r--multimedia/mpv/patches/patch-player_main.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/multimedia/mpv/patches/patch-player_main.c b/multimedia/mpv/patches/patch-player_main.c
new file mode 100644
index 00000000000..c656cc244ef
--- /dev/null
+++ b/multimedia/mpv/patches/patch-player_main.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-player_main.c,v 1.1 2016/11/03 14:41:28 leot Exp $
+
+Avoid to check mismatched built vs running libraries version.
+The use in pkgsrc can be considered a legitimate one.
+
+--- player/main.c.orig 2016-10-19 21:10:13.000000000 +0000
++++ player/main.c
+@@ -429,18 +429,6 @@ int mp_initialize(struct MPContext *mpct
+
+ handle_deprecated_options(mpctx);
+
+- 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;
+- }
+-
+ if (!mpctx->playlist->first && !opts->player_idle_mode)
+ return -3;
+