Improved handling unknown packets in DTSCFix.
This commit is contained in:
		
							parent
							
								
									6ea6f91795
								
							
						
					
					
						commit
						04125d28ae
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -106,7 +106,7 @@ namespace Converters {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            trackData[currentID].type = F.getJSON()["datatype"].asString();
 | 
					            trackData[currentID].type = F.getJSON()["datatype"].asString();
 | 
				
			||||||
          }else{
 | 
					          }else{
 | 
				
			||||||
            fprintf(stderr, "Found an unknown package with packetid 0 and datatype %s\n",F.getJSON()["datatype"].asString().c_str());
 | 
					            //fprintf(stderr, "Found an unknown package with packetid 0 and datatype %s\n",F.getJSON()["datatype"].asString().c_str());
 | 
				
			||||||
            F.parseNext();
 | 
					            F.parseNext();
 | 
				
			||||||
            continue;
 | 
					            continue;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
| 
						 | 
					@ -119,7 +119,7 @@ namespace Converters {
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if( currentID == "" ) {
 | 
					        if( currentID == "" ) {
 | 
				
			||||||
          fprintf(stderr, "Found an unknown v2 packet with id %d\n", F.getJSON()["trackid"].asInt());
 | 
					          //fprintf(stderr, "Found an unknown v2 packet with id %d\n", F.getJSON()["trackid"].asInt());
 | 
				
			||||||
          F.parseNext();
 | 
					          F.parseNext();
 | 
				
			||||||
          continue;
 | 
					          continue;
 | 
				
			||||||
          //should create new track but this shouldnt be needed...
 | 
					          //should create new track but this shouldnt be needed...
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue