File libvisual-plugins-0.4.0.patch of Package libvisual-plugins

--- plugins/actor/G-Force/Common/UI/EgOSUtils.cpp
+++ plugins/actor/G-Force/Common/UI/EgOSUtils.cpp
@@ -343,7 +343,10 @@
 	ans = ::MessageBox( 0, inMsg.getCStr(), "Examgen Message", MB_ICONEXCLAMATION | MB_YESNO | MB_SETFOREGROUND | MB_TASKMODAL );
 	return ans == IDYES;
 	#endif
-}	
+
+	// FIXME: Need implementation for UNIX_X
+	return false;
+}
 
 
 bool EgOSUtils::AreYouSure( const char* inMsg ) {
@@ -385,6 +388,9 @@
 	else
 		return 0;
 	#endif
+
+	// FIXME: Need implementation for UNIX_X
+	return -1;
 }
 
 
--- plugins/actor/G-Force/Common/UI/ScreenDevice.cpp
+++ plugins/actor/G-Force/Common/UI/ScreenDevice.cpp
@@ -459,6 +459,9 @@
 	//#pragma unused( inX, inY )
 	return 0;
 	#endif
+
+	// FIXME: Need implementation for UNIX_X
+	return 0;
 }
 	
 	
@@ -508,5 +511,8 @@
 	#pragma unused( inX, inY )
 	return 0;
 	#endif
+
+	// FIXME: Need implementation for UNIX_X
+	return 0;
 }
 
--- plugins/actor/JESS/renderer.c
+++ plugins/actor/JESS/renderer.c
@@ -373,7 +373,8 @@
 	/* j'ai mis pixel par defaut... */
 
 	uint8_t *pix = priv->pixel;
-	uint32_t bmax,pitch_4;
+	uint32_t bmax = 0;
+    uint32_t pitch_4;
 	
 	pix = priv->pixel;
 	if (priv->pixel == NULL)
--- plugins/actor/infinite/lv_infinite.c
+++ plugins/actor/infinite/lv_infinite.c
@@ -207,7 +207,6 @@
 {
 	VisBuffer buffer;
 	InfinitePrivate *priv;
-	int i;
 
 	visual_log_return_val_if_fail (plugin != NULL, -1);
 	visual_log_return_val_if_fail (video != NULL, -1);
--- plugins/actor/lv_gltest/actor_lv_gltest.c
+++ plugins/actor/lv_gltest/actor_lv_gltest.c
@@ -272,7 +272,6 @@
 	int i,c;
 	int y;
 	float ff;
-	GLfloat val;
 
 	visual_buffer_set_data_pair (&buffer, freq, sizeof (freq));
 	visual_buffer_set_data_pair (&pcmb, pcm, sizeof (pcm));
--- plugins/actor/nastyfft/actor_nastyfft.c
+++ plugins/actor/nastyfft/actor_nastyfft.c
@@ -351,12 +351,8 @@
 	glMatrixMode(GL_MODELVIEW);
 	glLoadIdentity();
 
-
-	GLfloat ambientMaterial[] = { 1.0, 1.0, 1.0, 1.0 };
-	GLfloat difuseMaterial[] = { .5, .5, .5, 1.0 };
 	GLfloat mat_specular[] = { 0.2, 0.2, 0.2, 1.0 };
 
-
 	glDepthFunc(GL_LEQUAL);
 	glEnable(GL_DEPTH_TEST);
 
--- plugins/actor/oinksie/gfx-blur.c
+++ plugins/actor/oinksie/gfx-blur.c
@@ -61,7 +61,8 @@
 			valuetab[i] = (i - fade) > 0 ? i - fade : 0;
 
 		for (i = 0; i < priv->screen_size; i++)
-			*(buf++) = valuetab[*buf];
+			*buf = valuetab[*buf];
+			buf++;
 	}
 }
 
--- plugins/actor/pseudotoad_flower/actor_flower.c
+++ plugins/actor/pseudotoad_flower/actor_flower.c
@@ -191,9 +191,7 @@
 
 int lv_flower_events (VisPluginData *plugin, VisEventQueue *events)
 {
-	FlowerPrivate *priv = visual_object_get_private (VISUAL_OBJECT (plugin));
 	VisEvent ev;
-	VisParamEntry *param;
 
 	while (visual_event_queue_poll (events, &ev)) {
 		switch (ev.type) {
--- plugins/input/mplayer/input_mplayer.c
+++ plugins/input/mplayer/input_mplayer.c
@@ -22,6 +22,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
+#define _GNU_SOURCE
 #include <config.h>
 
 #include <stdio.h>
@@ -178,7 +179,7 @@
 
 	priv->mmap_area = mremap( priv->mmap_area, sizeof( mplayer_data_t ),
 			sizeof( mplayer_data_t ) + priv->mmap_area->bs,
-			0 );
+			NULL );
 	if ( (int)priv->mmap_area == -1 )
 	{
 		visual_log( VISUAL_LOG_CRITICAL, 
--- plugins/morph/flash/morph_flash.c
+++ plugins/morph/flash/morph_flash.c
@@ -116,7 +116,7 @@
 	FlashPrivate *priv = visual_object_get_private (VISUAL_OBJECT (plugin));
 
 	if (src1->pal == NULL || src2->pal == NULL)
-		return;
+		return 0;
 
 	if (rate < 0.5)
 		visual_palette_blend (pal, src1->pal, &priv->whitepal, rate * 2);
openSUSE Build Service is sponsored by