Ticket #1959: dvd_menu_definition.diff
File dvd_menu_definition.diff, 1.7 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/DVDRingBuffer.cpp
59 59 } 60 60 } 61 61 62 bool DVDRingBufferPriv::IsInMenu(void) const 63 { 64 return ((title == 0) || 65 ((pgLength/90000) < 30) || 66 (NumMenuButtons() > 0)); 67 } 68 62 69 long long DVDRingBufferPriv::Seek(long long pos, int whence) 63 70 { 64 71 dvdnav_sector_search(this->dvdnav, pos / DVD_BLOCK_SIZE , whence); … … 833 840 hl_width = hl_height = 0; 834 841 } 835 842 836 int DVDRingBufferPriv::NumMenuButtons(void) 843 int DVDRingBufferPriv::NumMenuButtons(void) const 837 844 { 838 845 pci_t *pci = dvdnav_get_current_nav_pci(dvdnav); 839 846 int numButtons = pci->hli.hl_gi.btn_ns; -
libs/libmythtv/DVDRingBuffer.h
30 30 // gets 31 31 int GetTitle(void) const { return title; } 32 32 int GetPart(void) const { return part; } 33 bool IsInMenu(void) const { return (title == 0); }33 bool IsInMenu(void) const; 34 34 bool IsOpen(void) const { return dvdnav; } 35 35 long long GetReadPosition(void); 36 36 long long GetTotalReadPosition(void) { return titleLength; } … … 80 80 void MoveButtonUp(void); 81 81 void MoveButtonDown(void); 82 82 void ActivateButton(void); 83 int NumMenuButtons(void) ;83 int NumMenuButtons(void) const; 84 84 void IgnoreStillOrWait(bool skip) { skipstillorwait = skip; } 85 85 uint GetCurrentTime(void); 86 86 void SetTrack(uint type, int trackNo);