summaryrefslogtreecommitdiff
path: root/multimedia/mmpython/files
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mmpython/files')
-rw-r--r--multimedia/mmpython/files/patch-disc__discinfo.py13
-rw-r--r--multimedia/mmpython/files/patch-disc__lsdvd.py11
2 files changed, 24 insertions, 0 deletions
diff --git a/multimedia/mmpython/files/patch-disc__discinfo.py b/multimedia/mmpython/files/patch-disc__discinfo.py
new file mode 100644
index 000000000000..28c735567ab2
--- /dev/null
+++ b/multimedia/mmpython/files/patch-disc__discinfo.py
@@ -0,0 +1,13 @@
+--- disc/discinfo.py.orig Sun Feb 26 15:51:41 2006
++++ disc/discinfo.py Sun Feb 26 15:51:44 2006
+@@ -139,8 +139,9 @@
+ # doesn't work. Suppress that warning for Linux users,
+ # until a better solution can be found.
+ if os.uname()[0] == 'FreeBSD':
+- CDIOREADTOCENTRYS = 0xc0086305L
++ CDIOREADTOCENTRYS = -1073192187
+ CD_MSF_FORMAT = 2
++ CDS_NO_DISC = 1
+
+ try:
+ fd = os.open(device, os.O_RDONLY | os.O_NONBLOCK)
diff --git a/multimedia/mmpython/files/patch-disc__lsdvd.py b/multimedia/mmpython/files/patch-disc__lsdvd.py
new file mode 100644
index 000000000000..c7ca9244e1db
--- /dev/null
+++ b/multimedia/mmpython/files/patch-disc__lsdvd.py
@@ -0,0 +1,11 @@
+--- disc/lsdvd.py.orig Sun Feb 26 16:08:37 2006
++++ disc/lsdvd.py Sun Feb 26 16:32:03 2006
+@@ -96,7 +96,7 @@
+ self.mime = 'video/mpeg'
+
+ l = data[3].split(':')
+- self.length = (int(l[0])*60+int(l[1]))*60+int(l[2])
++ self.length = (int(l[0])*60+int(l[1]))*60+float(l[2])
+ self.trackno = int(data[1])
+ self.chapters = int(data[5])
+