Ticket #1043: dvdmenu_code_cleanup1.patch
File dvdmenu_code_cleanup1.patch, 3.5 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/DVDRingBuffer.h
55 55 uint GetAudioLanguage(int id); 56 56 uint GetSubtitleLanguage(int id); 57 57 long long MenuSpuPts(void) { return menuspupts; } 58 int CellChange(void) { return cellChange; }59 58 60 59 // commands 61 60 bool OpenFile(const QString &filename); … … 119 118 bool buttonSelected; 120 119 bool buttonExists; 121 120 long long menuspupts; 122 int cellChange;123 121 124 122 NuppelVideoPlayer *parent; 125 123 -
libs/libmythtv/avformatdecoder.cpp
275 275 // language preference 276 276 languagePreference(iso639_get_language_key_list()), 277 277 // DVD 278 lastdvdtitle(0), lastdvdpart(0), 279 lastdvdcellchange(0) 278 lastdvdtitle(0) 280 279 { 281 280 bzero(¶ms, sizeof(AVFormatParameters)); 282 281 bzero(prvpkt, 3 * sizeof(char)); … … 2273 2272 int dvdtitle = 0; 2274 2273 int dvdpart = 0; 2275 2274 ringBuffer->DVD()->GetPartAndTitle(dvdtitle,dvdpart); 2276 int dvdcellchange = ringBuffer->DVD()->CellChange();2277 if ((dvdtitle != lastdvdtitle || dvdpart != lastdvdpart ||2278 dvdcellchange != lastdvdcellchange))2279 {2280 GetNVP()->GetOSD()->HideSet("subtitles");2281 GetNVP()->GetOSD()->ClearAll("subtitles");2282 }2283 2275 if (dvdtitle != lastdvdtitle) 2284 2276 { 2285 2277 posmapStarted = false; … … 2292 2284 .arg(framesPlayed)); 2293 2285 } 2294 2286 lastdvdtitle = dvdtitle; 2295 lastdvdpart = dvdpart;2296 lastdvdcellchange = dvdcellchange;2297 2287 2298 2288 if (storedPackets.count() < 2 && !dvdvideopause) 2299 2289 storevideoframes = true; -
libs/libmythtv/DVDRingBuffer.cpp
34 34 skipstillorwait(true), spuStreamLetterbox(false), 35 35 cellstartPos(0), buttonSelected(false), 36 36 buttonExists(false), menuspupts(0), 37 cellChange(0),parent(0)37 parent(0) 38 38 { 39 39 dvdMenuButton = (AVSubtitleRect*)av_mallocz(sizeof(AVSubtitleRect)); 40 40 } … … 223 223 titleLength = length *DVD_BLOCK_SIZE; 224 224 cellstartPos = GetReadPosition(); 225 225 buttonSelected = false; 226 if (cellChange == 100)227 cellChange = 0;228 else229 cellChange++;230 226 227 if (parent) 228 { 229 parent->GetOSD()->HideSet("subtitles"); 230 parent->GetOSD()->ClearAll("subtitles"); 231 } 232 231 233 if (blockBuf != dvdBlockWriteBuf) 232 234 { 233 235 dvdnav_free_cache_block(dvdnav, blockBuf); -
libs/libmythtv/avformatdecoder.h
257 257 258 258 // DVD 259 259 int lastdvdtitle; 260 int lastdvdpart;261 int lastdvdcellchange;262 260 }; 263 261 264 262 #endif