Ticket #577: diff-bug-snd_mgr-20-03-2011.patch
File diff-bug-snd_mgr-20-03-2011.patch, 1.3 KB (added by , 13 years ago) |
---|
-
source/lib/res/sound/snd_mgr.cpp
1784 1784 // note: vs->hsd is valid, otherwise snd_open would have failed 1785 1785 // and returned an invalid handle (caught above). 1786 1786 1787 // optimization (don't want to do full update here - too slow) 1788 // either we get a source and playing begins immediately, 1789 // or it'll be taken care of on next update. 1790 if (vsrc_grant(vs) != INFO::OK) 1791 { 1792 return ERR::FAIL; 1793 } 1787 1794 vs->static_pri = static_pri; 1788 1795 list_add(vs); 1789 1796 vs->flags |= VS_IN_LIST; 1790 1791 // optimization (don't want to do full update here - too slow)1792 // either we get a source and playing begins immediately,1793 // or it'll be taken care of on next update.1794 vsrc_grant(vs);1795 1797 return INFO::OK; 1796 1798 } 1797 1799 -
source/lib/res/h_mgr.cpp
654 654 return INFO::OK; 655 655 // this was a valid handle but was probably freed in the meantime. 656 656 // complain because this probably indicates a bug somewhere. 657 WARN_RETURN(ERR::INVALID_HANDLE); 657 //WARN_RETURN(ERR::INVALID_HANDLE); 658 return INFO::OK; 658 659 } 659 660 660 661 return h_free_idx(idx, hd);