Return-Path: <iacobs@m0n5t3r.info>
Received: from kolab.revolutionlinux.com ([unix socket]) by
        kolab.revolutionlinux.com (Cyrus
v2.2.13-Mandriva-RPM-2.2.13-1.1.101mdk)
        with LMTPA; Tue, 06 Feb 2007 12:12:30 -0500
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1]) by
        kolab.revolutionlinux.com (Postfix) with ESMTP id 70FB6ABC110 for
        <jmdault@revolutionlinux.com>; Tue,  6 Feb 2007 12:12:30 -0500 (EST)
Received: from kolab.revolutionlinux.com ([127.0.0.1]) by localhost
        (kolab.revolutionlinux.com [192.168.2.224]) (amavisd-new, port
10025) with
        LMTP id 21392-02-2 for <jmdault@revolutionlinux.com>; Tue,  6 Feb
2007
        12:12:28 -0500 (EST)
Received: from smtp.easydns.com (smtp.easydns.com [205.210.42.52]) by
        kolab.revolutionlinux.com (Postfix) with ESMTP id 6C1AEABC004 for
        <jmdault@revolutionlinux.com>; Tue,  6 Feb 2007 12:12:28 -0500 (EST)
X-Greylist: Passed host: 82.76.121.36
Received: from mail.rndsoft.ro (ics.rndsoft.ro [82.76.121.36]) by
        smtp.easydns.com (Postfix) with ESMTP id 2FC1F4CAA1 for
        <jmdault@revolutionlinux.com>; Tue,  6 Feb 2007 12:12:27 -0500 (EST)
Received: from [10.0.0.11] (ics.rndsoft.ro [82.76.121.36]) by
        mail.rndsoft.ro (Postfix) with ESMTP id 023C0285F6 for
        <jmdault@revolutionlinux.com>; Tue,  6 Feb 2007 17:12:08 +0000 (UTC)
Message-ID: <45C8B6E8.5040904@m0n5t3r.info>
Date: Tue, 06 Feb 2007 19:12:08 +0200
From: Sabin Iacob <iacobs@m0n5t3r.info>
User-Agent: Thunderbird 1.5.0.9 (X11/20070202)
MIME-Version: 1.0
To: jmdault@revolutionlinux.com
Subject: patch for libflashsupport
Content-Type: multipart/mixed;
boundary="------------040202060103040200070702"
X-Virus-Scanned: by amavisd-new at revolutionlinux.com
X-Spam-Status: No, hits=-2.599 tagged_above=-999 required=4.9 tests=BAYES_00
X-Spam-Score: -2.599
X-Spam-Level: 
X-Evolution-Source: imap://jmdault@kolab.revolutionlinux.com/

This is a multi-part message in MIME format.
--------------040202060103040200070702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello
the libflashsupport source in SVN has some typos and won't compile 
without ESD & pulseaudio (I don't have/need them, so I disabled them), 
here's a patch to fix the issues (I only fixed the source for the final 
version, as I doubt anyone still uses the betas, however the patch 
applies cleanly to beta2 and fails a hunk when applying to beta1, as the 
last typo in the ALSA code is missing).


Regards

--------------040202060103040200070702
Content-Type: text/plain; name="typos.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="typos.patch"

Index: flashsupport.c
===================================================================
--- flashsupport.c      (revision 2254)
+++ flashsupport.c      (working copy)
@@ -275,10 +275,12 @@
 #define AUDIO_ALSA 2
 #define AUDIO_OSS 1
 
+#if defined(ESD)
 //ESD functions
 int (*FPX_esd_play_stream_fallback)( esd_format_t format, int rate,
        const char *host, const char *name );
-
+#endif
+#if defined(PULSEAUDIO)
 //PULSE functions
 pa_simple* (*FPX_pa_simple_new) (const char *server,const char *name,
     pa_stream_direction_t dir,const char *dev,const char *stream_name,
@@ -298,7 +300,7 @@
 int (*FPX_pa_simple_flush) (pa_simple *s, int *error);
 
 const char* (*FPX_pa_strerror) (int error);
-
+#endif
                      
 static int audiotype=2;
 static int audiodrivers=0;
@@ -307,12 +309,13 @@
 
 void FPX_SoundOutput_Detect()
 {
-       char tmpstr[1024]="";
        char *tmpenv;
        struct stat buf;
+#if defined(PULSEAUDIO)
+       char tmpstr[1024]="";
        void *handle;
        char *error;    
-
+#endif
        if((tmpenv=getenv("FLASH_AUDIODEBUG"))!=NULL) {
                audiodebug=1;
        }
@@ -886,7 +889,8 @@
                if ( !instance->handle ) {
                        pthread_exit(0);
                        return 0;
-
+               }
+               
                if ( err < 0 ) {
                        usleep(1);
                        continue;

--------------040202060103040200070702--
