Ticket #3618: 3618-v1.patch
File 3618-v1.patch, 1.7 KB (added by , 15 years ago) |
---|
-
libs/libmythtv/NuppelVideoPlayer.cpp
3299 3299 VERBOSE(VB_PLAYBACK, "JumpToProgram(void)"); 3300 3300 bool discontinuity = false, newtype = false; 3301 3301 int newid = -1; 3302 long long nextpos = player_ctx->tvchain->GetJumpPos(); 3302 3303 ProgramInfo *pginfo = player_ctx->tvchain->GetSwitchProgram( 3303 3304 discontinuity, newtype, newid); 3304 3305 if (!pginfo) 3305 3306 return; 3306 3307 3307 long long nextpos = player_ctx->tvchain->GetJumpPos();3308 3308 bool newIsDummy = player_ctx->tvchain->GetCardType(newid) == "DUMMY"; 3309 3309 3310 3310 SetPlayingInfo(*pginfo); -
libs/libmythtv/livetvchain.cpp
376 376 QMutexLocker lock(&m_lock); 377 377 378 378 if (m_switchid < 0 || m_curpos == m_switchid) 379 { 380 ClearSwitch(); 379 381 return NULL; 382 } 380 383 381 384 LiveTVChainEntry oldentry, entry; 382 385 GetEntryAt(m_curpos, oldentry); … … 397 400 } 398 401 399 402 if (!pginfo) 403 { 404 ClearSwitch(); 400 405 return NULL; 406 } 401 407 402 408 // Skip dummy recordings, if possible. 403 409 if (entry.cardtype == "DUMMY") … … 411 417 delete pginfo; 412 418 pginfo = EntryToProgram(entry); 413 419 if (!pginfo) 420 { 421 ClearSwitch(); 414 422 return NULL; 423 } 415 424 } 416 425 417 426 discont = true; … … 432 441 } 433 442 434 443 newid = m_switchid; 435 m_switchid = -1;436 444 445 ClearSwitch(); 446 437 447 return pginfo; 438 448 } 439 449