Added compatibility with latest library changes.
This commit is contained in:
parent
150136c8a4
commit
9994d4a590
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ namespace Buffer {
|
|||
} //cancel if not connected
|
||||
if (myRing->waiting){
|
||||
Stream::get()->waitForData();
|
||||
if (!Stream::get()->getStream()->isNewest(myRing->b)){
|
||||
if (!Stream::get()->getStream()->isNewest(myRing->b, allowedTracks)){
|
||||
myRing->waiting = false;
|
||||
Stream::get()->getReadLock();
|
||||
myRing->b = Stream::get()->getStream()->getNext(myRing->b, allowedTracks);
|
||||
|
@ -107,7 +107,7 @@ namespace Buffer {
|
|||
if (doSend(Stream::get()->getStream()->outPacket(myRing->b).c_str(), Stream::get()->getStream()->outPacket(myRing->b).length())){
|
||||
//switch to next buffer
|
||||
currsend = 0;
|
||||
if (Stream::get()->getStream()->isNewest(myRing->b)){
|
||||
if (Stream::get()->getStream()->isNewest(myRing->b, allowedTracks)){
|
||||
//no next buffer? go in waiting mode.
|
||||
myRing->waiting = true;
|
||||
Stream::get()->dropReadLock();
|
||||
|
|
Loading…
Add table
Reference in a new issue