Package: vobcopy
Version: 0.5.14
Tags: patch

Hi Stephen,

I noticed that vobcopy determines the DVD device for my Linux system
wrong.

$ vobcopy -i /mnt/cdrom/ -m -I -F 64
[snip]
Device /mnt/cdrom mount on /dev/scd1

path to dvd: /dev/scd0
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Could not open /dev/scd0 with libdvdcss.
libdvdread: Can't open /dev/scd0 for reading

[Error] Path thingy didn't work '(null)'
[Error] Try someting like -i /cdrom, /dvd  or /mnt/dvd

The programs selects /dev/scd0 from /etc/fstab but I mounted
manually /dev/scd1. (I have an external drive and from time to time
the device nodes change from 0 to 1.)

The attached patch fixes it:

path to dvd: /dev/scd1
libdvdread: Using libdvdcss version 1.2.9 for DVD access
name of dvd: HARRY_POTTER_PHILOSOPHERS_STON
There are 5 titles on this DVD.   
There are 39 chapters on the dvd. 
Most chapters has title 1 with 35 chapters.

Now let's continue watching Harry Potter :-)

Jens
diff -ur vobcopy-0.5.14/dvd.c vobcopy-0.5.14.new/dvd.c
--- vobcopy-0.5.14/dvd.c        2004-11-22 20:12:46.000000000 +0100
+++ vobcopy-0.5.14.new/dvd.c    2005-12-30 16:19:36.000000000 +0100
@@ -295,6 +295,11 @@
            }
        }
        endmntent(tmp_streamin);
+       if (mounted) {
+               /* device was set from /etc/mtab, no need to further check
+                * /etc/fstab */
+               return mounted;
+       }
     }
 #endif
 

Reply via email to