summaryrefslogtreecommitdiff
path: root/audio/cplay/patches/patch-aa
blob: 883ea4f24685420d9cd2949505b5885aa3b43c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-aa,v 1.1.1.1 2005/11/08 15:56:40 tonio Exp $

--- cplay.orig	2003-12-05 09:20:56.000000000 +0100
+++ cplay
@@ -46,6 +46,7 @@ except: pass
 # ------------------------------------------
 _locale_domain = "cplay"
 _locale_dir = "/usr/local/share/locale"
+pipes = os.pipe(), os.pipe(), os.pipe()
 
 try:
     import gettext  # python 2.0
@@ -1169,9 +1170,7 @@ class Player:
         self.commandline = commandline
         self.re_files = re.compile(files, re.I)
         self.fps = fps
-        self.stdin_r, self.stdin_w = os.pipe()
-        self.stdout_r, self.stdout_w = os.pipe()
-        self.stderr_r, self.stderr_w = os.pipe()
+	(self.stdin_r, self.stdin_w), (self.stdout_r, self.stdout_w), (self.stderr_r, self.stderr_w) = pipes
         self.entry = None
         self.stopped = 0
         self.paused = 0