[xiph-cvs] cvs commit: vorbis/lib vorbisenc.c

Chris Wolf cwolf at xiph.org
Thu Sep 13 14:38:45 PDT 2001



cwolf       01/09/13 14:38:45

  Modified:    lib      vorbisenc.c
  Log:
  Drop requirement for shared memory segment for win32

Revision  Changes    Path
1.16      +10 -1     vorbis/lib/vorbisenc.c

Index: vorbisenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/vorbisenc.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vorbisenc.c	2001/09/07 08:42:30	1.15
+++ vorbisenc.c	2001/09/13 21:38:45	1.16
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: simple programmatic interface for encoder mode setup
- last mod: $Id: vorbisenc.c,v 1.15 2001/09/07 08:42:30 cwolf Exp $
+ last mod: $Id: vorbisenc.c,v 1.16 2001/09/13 21:38:45 cwolf Exp $
 
  ********************************************************************/
 
@@ -37,6 +37,8 @@
 #if defined(_MSC_VER) && defined(STANDALONE_VORBISENC_DLL)
 # include "shmmap.h"
 
+  SHARED_MAP *g_shared_map;
+
 # define _time_P    g_shared_map->p_time_P
 # define _floor_P   g_shared_map->p_floor_P
 # define _residue_P g_shared_map->p_residue_P
@@ -48,6 +50,13 @@
 static void codec_setup_partialcopy(codec_setup_info *ci,
                                  codec_setup_info *cs){
   int i;
+
+#if defined(_MSC_VER) && defined(STANDALONE_VORBISENC_DLL)
+  int maplen;
+
+  if ((g_shared_map = table_map2mem(&maplen)) == (SHARED_MAP*)0)
+  ; /* some error handling for memory exhaustion */
+#endif
 
   memcpy(ci,cs,sizeof(codec_setup_info)); /* to get the flat numbers */
 

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list