Ticket #2166: improved_utf8_filename_support_for_int_player.diff
File improved_utf8_filename_support_for_int_player.diff, 1.4 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/RingBuffer.cpp
old new 221 221 while (openTimer.elapsed() < timetowait) 222 222 { 223 223 lasterror = 0; 224 fd2 = open(filename. ascii(), O_RDONLY|O_LARGEFILE|O_STREAMING);224 fd2 = open(filename.local8Bit(), O_RDONLY|O_LARGEFILE|O_STREAMING); 225 225 226 226 if (fd2 < 0) 227 227 { … … 276 276 #ifdef USING_FRONTEND 277 277 else if (is_dvd) 278 278 { 279 dvdPriv->OpenFile(filename );279 dvdPriv->OpenFile(filename.local8Bit()); 280 280 readblocksize = DVD_BLOCK_SIZE * 62; 281 281 } 282 282 #endif // USING_FRONTEND -
programs/mythtv/main.cpp
old new 256 256 { 257 257 ProgramInfo *pginfo = new ProgramInfo(); 258 258 pginfo->endts = QDateTime::currentDateTime().addSecs(-180); 259 pginfo->pathname = filename;259 pginfo->pathname = QString::fromLocal8Bit(filename); 260 260 pginfo->isVideo = true; 261 262 261 tv->Playback(pginfo); 263 262 } 264 263 else