Made DTSC seeking functions more robust.

This commit is contained in:
Thulinma 2014-04-22 16:15:11 +02:00
parent 8fde3f5851
commit 60929d5014
2 changed files with 18 additions and 5 deletions

View file

@ -65,7 +65,11 @@ namespace DTSC {
if (master && !rhs.master){
null();
}
reInit(rhs.data, rhs.dataLen, !rhs.master);
if (rhs){
reInit(rhs.data, rhs.dataLen, !rhs.master);
}else{
null();
}
}
/// Returns true if the packet is deemed valid, false otherwise.