Revision: 4451
          http://playerstage.svn.sourceforge.net/playerstage/?rev=4451&view=rev
Author:   gerkey
Date:     2008-03-27 18:55:12 -0700 (Thu, 27 Mar 2008)

Log Message:
-----------
added more useful debug to message.cc for the case in which it does not locate 
a message clone function; also modified Driver::Publish so that it doesn't 
create the Message object in the case where the associated device doesn't exist

Modified Paths:
--------------
    code/player/trunk/libplayercore/driver.cc
    code/player/trunk/libplayercore/message.cc

Modified: code/player/trunk/libplayercore/driver.cc
===================================================================
--- code/player/trunk/libplayercore/driver.cc   2008-03-27 09:26:48 UTC (rev 
4450)
+++ code/player/trunk/libplayercore/driver.cc   2008-03-28 01:55:12 UTC (rev 
4451)
@@ -153,7 +153,6 @@
 {
   Device* dev;
 
-  Message msg(*hdr,src,copy);
   // lock here, because we're accessing our device's queue list
   this->Lock();
   // push onto each queue subscribed to the given device
@@ -167,6 +166,7 @@
     this->Unlock();
     return;
   }
+  Message msg(*hdr,src,copy);
   for(size_t i=0;i<dev->len_queues;i++)
   {
     if(dev->queues[i] != NULL)

Modified: code/player/trunk/libplayercore/message.cc
===================================================================
--- code/player/trunk/libplayercore/message.cc  2008-03-27 09:26:48 UTC (rev 
4450)
+++ code/player/trunk/libplayercore/message.cc  2008-03-28 01:55:12 UTC (rev 
4451)
@@ -129,7 +129,7 @@
     }
     else
     {
-      PLAYER_ERROR3 ("failed to clone message %s: %s, %d", interf_to_str 
(Header.addr.interf), msgtype_to_str (Header.type), Header.subtype);
+      PLAYER_ERROR3 ("failed to find clone function for  message %s: %s, %d", 
interf_to_str (Header.addr.interf), msgtype_to_str (Header.type), 
Header.subtype);
     }
   }
   else


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to