diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-10 19:04:24 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-10 19:04:24 +0000 |
commit | c220d7c05a48469b7af57b272790b23a78e73c99 (patch) | |
tree | 03219b02db43fe0ddeba6ffd53170e1e3ae0de20 /multimedia/mmpython/files/patch-disc_dvdinfo.py | |
parent | - Update to version 0.5.5.s.20040609 (diff) |
- Properly detect DVDs, VCDs etc.
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=111222
Diffstat (limited to 'multimedia/mmpython/files/patch-disc_dvdinfo.py')
-rw-r--r-- | multimedia/mmpython/files/patch-disc_dvdinfo.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/multimedia/mmpython/files/patch-disc_dvdinfo.py b/multimedia/mmpython/files/patch-disc_dvdinfo.py new file mode 100644 index 000000000000..a69022a3bb61 --- /dev/null +++ b/multimedia/mmpython/files/patch-disc_dvdinfo.py @@ -0,0 +1,27 @@ + +$FreeBSD$ + +--- disc/dvdinfo.py.orig Thu Jun 10 20:53:51 2004 ++++ disc/dvdinfo.py Thu Jun 10 20:55:02 2004 +@@ -115,8 +115,8 @@ + + # brute force reading of the device to find out if it is a DVD + f = open(device,'rb') +- f.seek(32808, 0) +- buffer = f.read(50000) ++ f.seek(32768, 0) ++ buffer = f.read(50040) + + if buffer.find('UDF') == -1: + f.close() +@@ -148,8 +148,8 @@ + + def isDVDiso(self, f): + # brute force reading of the device to find out if it is a DVD +- f.seek(32808, 0) +- buffer = f.read(50000) ++ f.seek(32768, 0) ++ buffer = f.read(50040) + + if buffer.find('UDF') == -1: + return 0 |