Update of /cvsroot/playerstage/code/stage/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362

Modified Files:
        p_audio.cc 
Log Message:
avoid publishing packets when there's no new data


Index: p_audio.cc
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/p_audio.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** p_audio.cc  2 Aug 2006 20:51:27 -0000       1.3
--- p_audio.cc  2 Aug 2006 21:14:53 -0000       1.4
***************
*** 57,63 ****
      assert(sdata);
  
      player_opaque_data_t pdata;
      memset(&pdata, 0, sizeof(pdata));
- 
      // Translate the Stage-formatted sdata into the Player-formatted pdata
  
--- 57,66 ----
      assert(sdata);
  
+     // check if there's new data to publish
+     if (sdata->recv[0]==0)
+       return ;
+       
      player_opaque_data_t pdata;
      memset(&pdata, 0, sizeof(pdata));
      // Translate the Stage-formatted sdata into the Player-formatted pdata
  


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to