[vlc-devel] Re: Compile error with latest live libs.
    Ross Finlayson 
    finlayson at live.com
       
    Tue Jul 20 23:48:30 CEST 2004
    
    
  
Oops - there was recently a small change to the LIVE.COM API that broke the 
existing "livedotcom.cpp" code.  The following patch (untested) should fix 
the problem.  (Note that this patch - unlike the one that Arwed von Merkatz 
posted - will continue to work with old versions of the library, and 
appears to be for the latest CVS version of "livedotcom.cpp".)
--- livedotcom.cpp.orig Tue Jul 20 14:42:19 2004
+++ livedotcom.cpp      Tue Jul 20 14:46:03 2004
@@ -43,6 +43,13 @@
  #include "../access/mms/asf.h"  /* Who said ugly ? */
  }
+#if (LIVEMEDIA_LIBRARY_VERSION_INT < 1089936000)
+#define RECLAIM_ENV(env) delete (env)
+#else
+#define RECLAIM_ENV(env) (env)->reclaim()
+#endif
+
+
  using namespace std;
  /*****************************************************************************
@@ -555,7 +562,7 @@
      }
      if( p_sys->env )
      {
-        delete p_sys->env;
+        RECLAIM_ENV(p_sys->env);
      }
      if( p_sys->scheduler )
      {
@@ -613,7 +620,7 @@
      if( p_sys->env )
      {
-        delete p_sys->env;
+        RECLAIM_ENV(p_sys->env);
      }
      if( p_sys->scheduler )
      {
-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
    
    
More information about the vlc-devel
mailing list