Ticket #743: find-correct-pat.diff
File find-correct-pat.diff, 1.6 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/mpeg/mpegstreamdata.cpp
old new 375 375 ProgramAssociationTable *pat = 376 376 new ProgramAssociationTable(psip); 377 377 CachePAT(pat); 378 emit UpdatePAT(pat); 379 if ((_desired_program >= 0) && CreatePATSingleProgram(*pat)) 378 if (_desired_program < 0) 379 { 380 emit UpdatePAT(pat); 381 } 382 if ((_desired_program >= 0) && pat->FindPID(_desired_program)) 383 { 384 CreatePATSingleProgram(*pat); 385 emit UpdatePAT(pat); 380 386 emit UpdatePATSingleProgram(PATSingleProgram()); 387 } 381 388 } 382 389 else 383 390 { 384 391 ProgramAssociationTable pat(psip); 385 emit UpdatePAT(&pat); 386 if ((_desired_program >= 0) && CreatePATSingleProgram(pat)) 392 if (_desired_program < 0) 393 { 394 emit UpdatePAT(&pat); 395 } 396 else if ((_desired_program >= 0) && pat.FindPID(_desired_program)) 397 { 398 CreatePATSingleProgram(pat); 399 emit UpdatePAT(&pat); 387 400 emit UpdatePATSingleProgram(PATSingleProgram()); 401 } 388 402 } 389 403 return true; 390 404 }