[mythtv] [PATCH] MythVideo & Mediamonitoring (suite)

Xavier Hervy maxpower44 at tiscali.fr
Fri Jun 18 04:35:32 EDT 2004


Leo Weppelman wrote:
> On Wed, Jun 16, 2004 at 11:46:18PM +0200, Xavier Hervy wrote:
> 
> 
>>Thx for your help.
>>then all 'close device' removed could be stay in source code.
>>But why close a device if we can keep it open ?
> 
> 
> I haven't had much time to spend on it yet, but the only thing that
> might be affected by keeping the device open might be the media-change
> detection. But this is pure speculation...

On kernel 2.4.20, media-change detection work even if the device is 
never close. I can't confirm this on 2.6.3 buit it should work to ... ?
> 
> 
>>I will try again, and i don't have the 'videotree.o : Uh Oh ...' 
>>probably you should use a clean cvs version.
> 
> 
> Yup, that helped. I haven't tried the patch atached to the mail I am
> currently replying to, just one earlier. I noticed that it won't
> eject the CD anymore on exit of the video browser. The CD is not
> umounted on return from the handler either.... This means that without
> logging in and typing 'eject cdrom' on the command prompt, there is no
> way to retrieve the CD. It would be nice if it is possible to umount
> the cdrom after the handler returns. To me this seems the most logical
> approach.

With this patch, here is how mediamonitor work :
when mediastatus change :
MEDIASTAT_OPEN -> MEDIASTAT_NOTMOUNTED then mediamonitor mount it (if data)
MEDIASTAT_NOTMOUNTED -> MEDIASTAT_MOUNTED then mediamonitor execute 
mediahandler
the tray is always unlock
MEDIASTAT_MOUNTED -> MEDIASTAT_OPEN then mediamonitor unmount the device
the door is unlocked than you should open the door when you want even if 
you are still in videotree.
if you open the door by pressing eject button on cdrom drive, the door 
will open and the device will be unmount.

It's will i don't need to unmount device after the handle return.

Have you try to open the door ? it's work ?
unlock don't work or mediamonitor don't detect you open the door ?
what mediamonitor said ?
> 
> 
>>I have remove the /video_ts lower test because Donovan is probably right 
>>about udf filesystem.
> 
> 
> Yes, I think so too. And the detection of the udf filesystems works OK
> too. I was a bit afraid that it might interpret my is9660-dvd's with
> pictures as udf, but it does not.
> 
> 
> Leo.
> 
> 

In my system mediamonitor works like he do, i hope that work for you too.

thx again for you reply

Xavier



More information about the mythtv-dev mailing list