File: 070_no-const-vispluginfo-in-nastyfft.patch

package info (click to toggle)
libvisual-plugins 1%3A0.4.0%2Bdfsg1-13
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,644 kB
  • sloc: ansic: 9,358; sh: 8,809; cpp: 871; makefile: 221; sed: 16
file content (22 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: fix a fail in gnome-settings-daemon. (LP: #287448)
   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.
Author: Loic Minier <lool@dooz.org>
Last-Update: 2008-10-22
Index: libvisual-plugins/plugins/actor/nastyfft/actor_nastyfft.c
===================================================================
--- libvisual-plugins.orig/plugins/actor/nastyfft/actor_nastyfft.c
+++ libvisual-plugins/plugins/actor/nastyfft/actor_nastyfft.c
@@ -80,7 +80,7 @@ const VisPluginInfo *get_plugin_info (in
 		.vidoptions.depth = VISUAL_VIDEO_DEPTH_GL
 	}};
 
-	static const VisPluginInfo info[] = {{
+	static VisPluginInfo info[] = {{
 		.type = VISUAL_PLUGIN_TYPE_ACTOR,
 
 		.plugname = N_("nastyfft"),