Opened 9 years ago

Closed 9 years ago

#8834 closed defect (fixed)

DVD fails to play if device is a symbolic link

Reported by: gregorio.gervasio@… Owned by: cpinkham
Priority: minor Milestone: unknown
Component: MythTV - General Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Excerpt from "-v playback,file,extra" (r25896):

2010-08-28 18:02:36.212 RingBuf(dvd://dev/dvd): OpenFile(dvd://dev/dvd, 12)
2010-08-28 18:02:36.212 OpenFile() trying DVD at /dev/dvd
libdvdnav: Using dvdnav version svnR1215
libdvdread: Using libdvdcss version 1.2.10 for DVD access
2010-08-28 18:02:36.212 mythfile_stat('/dev/dvd', 140734422767008)
libdvdread: Could not open /dev/dvd
libdvdnav: vm: failed to open/read the DVD
2010-08-28 18:02:36.212 Failed to open DVD device at /dev/dvd

It works if the DVD device is "/dev/sr0". Looks like mythfile_stat (in mythiowrapper) calls lstat() instead of stat()?

Change History (3)

comment:1 Changed 9 years ago by gregorio.gervasio@…

Sorry, I meant to add that "/dev/dvd" is a symbolic link to "/dev/sr0" on my system.

comment:2 Changed 9 years ago by robertm

Owner: set to cpinkham
Status: newassigned

comment:3 Changed 9 years ago by cpinkham

Resolution: fixed
Status: assignedclosed

(In [25924]) Change lstat() to stat() in mythfile_stat(). This should fix playback of DVDs when /dev/dvd or the path given is a link instead of being an actual file or block device.

Closes #8834. Thanks to Gregorio Gervasio for reporting this, I thought I noticed something like this the other day, but hadn't had time to track it down yet.

Note: See TracTickets for help on using tickets.