Ticket #2821: eject_fix.diff
File eject_fix.diff, 1.2 KB (added by , 17 years ago) |
---|
-
DVDRingBuffer.h
75 75 bool OpenFile(const QString &filename); 76 76 void PlayTitleAndPart(int _title, int _part) 77 77 { dvdnav_part_play(dvdnav, _title, _part); } 78 void close(void);78 void CloseDVD(void); 79 79 bool nextTrack(void); 80 80 void prevTrack(void); 81 81 int safe_read(void *data, unsigned sz); -
DVDRingBuffer.cpp
6 6 #include <sys/stat.h> 7 7 #include <sys/ioctl.h> 8 8 #include <fcntl.h> 9 #include <unistd.h> 9 10 #endif 10 11 11 12 … … 63 64 64 65 DVDRingBufferPriv::~DVDRingBufferPriv() 65 66 { 66 close();67 CloseDVD(); 67 68 ClearMenuSPUParameters(); 68 69 } 69 70 70 void DVDRingBufferPriv:: close(void)71 void DVDRingBufferPriv::CloseDVD(void) 71 72 { 72 73 if (dvdnav) 73 74 { … … 1241 1242 1242 1243 if (ioctl(fd, SG_IO, &sghdr) < 0) 1243 1244 VERBOSE(VB_PLAYBACK, LOC_ERR + "Limit DVD Speed Failed"); 1244 1245 1246 close(fd); 1245 1247 VERBOSE(VB_PLAYBACK, LOC + "Limiting DVD Speed Successful"); 1246 1248 #else 1247 1249 (void)speed;