Ticket #2426: isnearend.diff
File isnearend.diff, 3.8 KB (added by , 19 years ago) |
---|
-
libs/libmythtv/tv_play.h
164 164 bool IsErrored(void) const { return errored; } 165 165 /// true if dialog is either videoplayexit, playexit or askdelete dialog 166 166 bool IsVideoExitDialog(void); 167 /// true if NVP is near the end 168 bool IsNearEnd(void) { return isnearend; } 169 167 170 168 171 // Other queries 169 172 int GetLastRecorderNum(void) const; … … 528 531 529 532 bool inPlaylist; ///< show is part of a playlist 530 533 bool underNetworkControl; ///< initial show started via by the network control interface 534 bool isnearend; 531 535 532 536 // Recording to play next, after LiveTV 533 537 ProgramInfo *pseudoLiveTVRec[2]; -
libs/libmythtv/tv_play.cpp
461 522 playbackinfo(NULL), playbackLen(0), 462 523 lastProgram(NULL), jumpToProgram(false), 463 524 inPlaylist(false), underNetworkControl(false), 525 isnearend(false), 464 526 // Video Players 465 527 nvp(NULL), pipnvp(NULL), activenvp(NULL), 466 528 // Remote Encoders … … 1773 1835 nvp->SetWatched(); 1774 1836 VERBOSE(VB_PLAYBACK, LOC_ERR + "nvp->IsPlaying() timed out"); 1775 1837 } 1838 1839 if (nvp->IsNearEnd()) 1840 isnearend = true; 1841 else 1842 isnearend = false; 1843 1844 if (isnearend && IsEmbedding() && !paused) 1845 DoPause(); 1776 1846 } 1777 1847 1778 1848 if (!endOfRecording) 1779 1849 { 1780 1781 1782 if (jumped_back && !nvp->IsNearEnd()) 1850 if (jumped_back && !isnearend) 1783 1851 jumped_back = false; 1784 1852 1785 1853 if (internalState == kState_WatchingPreRecorded && !inPlaylist && 1786 dialogname == "" && nvp->IsNearEnd() && !exitPlayer && !underNetworkControl && 1854 dialogname == "" && isnearend && !exitPlayer 1855 && !underNetworkControl && 1787 1856 (gContext->GetNumSetting("EndOfRecordingExitPrompt") == 1) && 1788 !jumped_back && !editmode )1857 !jumped_back && !editmode && !IsEmbedding() && !paused) 1789 1858 { 1790 if (IsEmbedding()) 1791 StopEmbeddingOutput(); 1792 else 1793 PromptDeleteRecording(tr("End Of Recording")); 1859 PromptDeleteRecording(tr("End Of Recording")); 1794 1860 } 1795 1861 1796 1862 … … 2315 2381 else 2316 2382 DoSeek(-rewtime, tr("Skip Back")); 2317 2383 } 2318 else if (action == "ESCAPE" && activenvp->IsNearEnd())2384 else if (action == "ESCAPE" && isnearend) 2319 2385 { 2320 2386 requestDelete = false; 2321 2387 exitPlayer = true; … … 2406 2472 wantsToQuit = true; 2407 2473 break; 2408 2474 default: 2409 if ( activenvp->IsNearEnd())2475 if (isnearend) 2410 2476 { 2411 2477 exitPlayer = true; 2412 2478 wantsToQuit = true; -
programs/mythfrontend/playbackbox.cpp
3705 3705 3706 3706 void PlaybackBox::timeout(void) 3707 3707 { 3708 if (m_player && !m_player->IsEmbedding() &&3709 playbackVideoContainer)3710 {3711 exitWin();3712 }3713 3714 3708 if (titleList.count() <= 1) 3715 3709 return; 3716 3710