From 21c295a86a10a3cd59802b2cf3ab7c24ebf0c608 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 13 Oct 2012 00:57:48 -0700 Subject: Sat Oct 13 00:57:48 PDT 2012 --- .../60_no-const-vispluginfo-in-nastyfft.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testing/libvisual-plugins/60_no-const-vispluginfo-in-nastyfft.patch (limited to 'testing/libvisual-plugins/60_no-const-vispluginfo-in-nastyfft.patch') diff --git a/testing/libvisual-plugins/60_no-const-vispluginfo-in-nastyfft.patch b/testing/libvisual-plugins/60_no-const-vispluginfo-in-nastyfft.patch new file mode 100644 index 000000000..8e54e02cb --- /dev/null +++ b/testing/libvisual-plugins/60_no-const-vispluginfo-in-nastyfft.patch @@ -0,0 +1,18 @@ +The static VisPluginInfo in nastyfft was declared as const, but libvisual write +to its refcount when it visual_object_unref()s it (nasty!). This is broken at +various levels: libvisual shouldn't be writing to this static plugin which is +allocated by a dlopen()ed plugin, and it should also honor the "const +VisPluginInfo" API... Anyway, nastyfft was the only occurrence and this fixes +the crash for now; LP: #287448. + +--- libvisual-plugins-0.4.0.dfsg.1.orig/plugins/actor/nastyfft/actor_nastyfft.c ++++ libvisual-plugins-0.4.0.dfsg.1/plugins/actor/nastyfft/actor_nastyfft.c +@@ -80,7 +80,7 @@ + .vidoptions.depth = VISUAL_VIDEO_DEPTH_GL + }}; + +- static const VisPluginInfo info[] = {{ ++ static VisPluginInfo info[] = {{ + .type = VISUAL_PLUGIN_TYPE_ACTOR, + + .plugname = N_("nastyfft"), -- cgit v1.2.3-54-g00ecf