Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1773 closed defect (fixed)

mythmediamonitor does register the same device twice

Reported by: anonymous Owned by: danielk
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


Since the mythmediamonitor now also looks in /sys/block, my cdrom device was added to the pool of removable devices twice. Once from the fstab entry and once as a result from the /sys/block scan. This led to strange behaviour. Mostly that I had to quit watching a dvd twice before I got back to the menu. Since the the stat.st_rdev value is pretty unique to a device AFAIK, I wrote a patch to detect (and prevent) adding the same device twice based on the rdev value.

Attachments (1)

mythmediamonitor.patch (4.0 KB) - added by leo+nospam at 15 years ago.

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by leo+nospam at

Attachment: mythmediamonitor.patch added

comment:1 Changed 15 years ago by danielk

Milestone: 0.20
Owner: changed from Isaac Richards to danielk
Version: head

comment:2 Changed 15 years ago by danielk

Resolution: fixed
Status: newclosed

(In [9982]) Fixes #1773. Detects some instances of duplicate entries in the Media Monitor.

In particular this patch from "leo+nospam at" checks to see if the rdev value from a new device matches any device the media monitor is already monitoring.

comment:3 Changed 15 years ago by danielk

(In [9995]) Refs #1773. Fixes an iterator problem with [9982].

Note: See TracTickets for help on using tickets.