[Freeswitch-svn] [commit] r11093 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Thu Jan 8 04:10:51 PST 2009


Author: gmaruzz
Date: Thu Jan  8 06:10:51 2009
New Revision: 11093

Log:
skypiax: compiles on win32

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	Thu Jan  8 06:10:51 2009
@@ -91,12 +91,12 @@
 #ifdef WIN32
       unsigned int fdselect;
 #else
+      int received = 0;
       int fdselect;
 #endif /* WIN32 */
       int rt;
       fd_set fs;
       struct timeval to;
-      int received = 0;
 
       if (!running)
         break;
@@ -184,12 +184,12 @@
               /****************************************************************/
           if (len > 0) {
             if (len == SAMPLES_PER_FRAME * sizeof(short)) {
-              //unsigned int howmany;
-              //howmany = len;
+#ifdef WIN32
+              unsigned int howmany;
+              howmany = len;
 
               //WARNINGA("SRV recv %d\n", SKYPIAX_P_LOG, len);
 
-#ifdef WIN32
               switch_file_write(p->audiopipe[1], srv_in, &howmany);
 #else /* WIN32 */
               len = write(p->audiopipe[1], srv_in, len);



More information about the Freeswitch-svn mailing list