On Tue 08.07.2003 at 05:29:23PM +0200, Dirk Meyer wrote:
> Peter Surda wrote:
> > Hi,
> >
> > I have a minor comment about media type. Now that I have access to a DVD
> > burner, I burn some files on DVDs instead of CDs. When I insert such a DVD
> > into the drive, freevo says it's a CD (it isn't a movie-dvd).
> >
> > I remember I tried to write DVD/CD detection routine about 2 years ago, and
> > unfortunately found out that there is no such ioctl that can tell you whether
> > the disc is a CD or a DVD (well, some ioctl can tell you if it's an Audio CD,
> > but for normal data, DVDs and CDs are handled the same way). It was kernel 2.4
> > already, but perhaps it changed in between.
> >
> > I don't think it's really a big problem calling a disc CD instead of DVD, but
> > solving this would be nice if possible.
> 
> I still don't know a way to detect this. We could add the size of all
> files and if this is greater than 1 GB it must be a DVD. But this is
> a bad hack.

Checking the type of filesystem (DVD can have UDF or ISO9660, CDs only
ISO9660), or using the ``df'' command for getting the percentage of used
space on the disc (instead of adding up the sizes of all files). It's
still a dirty hack, that's true.

Matthieu
-- 
 (~._.~)        Matthieu Weber - Universit� de Jyv�skyl�         (~._.~)
  ( ? )                email : [EMAIL PROTECTED]                  ( ? ) 
 ()- -()               public key id : 452AE0AD                  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to