gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10094: disable exports debugging by


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10094: disable exports debugging by default, and make it nicer when enabled
Date: Sat, 25 Oct 2008 10:02:35 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10094
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Sat 2008-10-25 10:02:35 +0200
message:
  disable exports debugging by default, and make it nicer when enabled
modified:
  libcore/parser/SWFMovieDefinition.cpp
=== modified file 'libcore/parser/SWFMovieDefinition.cpp'
--- a/libcore/parser/SWFMovieDefinition.cpp     2008-10-06 12:30:58 +0000
+++ b/libcore/parser/SWFMovieDefinition.cpp     2008-10-25 08:02:35 +0000
@@ -70,7 +70,7 @@
 //#undef DEBUG_THREADS_LOCKING
 
 // Define this to get debugging output for symbol library use
-#define DEBUG_EXPORTS
+//#define DEBUG_EXPORTS
 
 namespace gnash
 {
@@ -790,7 +790,7 @@
 SWFMovieDefinition::get_exported_resource(const std::string& symbol)
 {
 #ifdef DEBUG_EXPORTS
-       log_debug(_("get_exported_resource called, frame count=%u"), 
m_frame_count);
+       log_debug("get_exported_resource(%s) called, loading frame:%u", symbol, 
m_frame_count);
 #endif
 
        // Don't call get_exported_resource() from this movie loader
@@ -832,7 +832,13 @@
                {
                        boost::mutex::scoped_lock lock(_exportedResourcesMutex);
                        ExportMap::iterator it = 
_exportedResources.find(symbol);
-                       if ( it != _exportedResources.end() ) return it->second;
+                       if ( it != _exportedResources.end() )
+            {
+#ifdef DEBUG_EXPORTS
+                   log_debug(" resource found, loading frame:%u", 
new_loading_frame);
+#endif
+                return it->second;
+            }
                }
 
         // We checked last (or past-last) advertised frame. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]