[mythtv] [PATCH] mythvideo cd support
Xavier Hervy
maxpower44 at tiscali.fr
Tue Jun 8 08:48:47 EDT 2004
I have modified my code for cd support in mythvideo.
- now mythvideo support multi cdrom
- i have remove eject option
- i parse the fstab file to know the list of cdrom device
but as i said before, it should be not the better way to parse fstab in
videotree.cpp.
What i was thinking :
- sending information about inserted media (structmedia) like device,
mountpoint, volumename, type and perhaps a unique id (i don't know which)
for getting volume name, i can use volname program, but an other
solution can be better. I take a look in cdrom.h, but found nothing
about volume name ...
I would too add a cd collections feature in mythvideo and dvd/vcd
collection in mythdvd, it's why i would like to have a unique id but i
don't know if it's possible (probably volumename is enough for dvd)
- create a gcontext function like this :
gcontext->getMedias(type) that return a list of structmedia
with this i just should do gcontext->getMedias(MEDIATYPE_DATA) to have
the list of available cdrom.
What do you think about that ?
any recommendations ?
Xavier
More information about the mythtv-dev
mailing list