aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-26 16:46:58 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-26 16:46:58 +0200
commitdbe5e67d2685083769e7d154926e6a1a234fa3c4 (patch)
tree96c0b5c1bebef5253bdde62fbd17a584427f8e32
parentf2d463ea3f279bb14651b9b517e6721050ae68b2 (diff)
Fix rtmpdump locking up when stderr buffer is filled.
-rw-r--r--src/livestreamer/stream.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/livestreamer/stream.py b/src/livestreamer/stream.py
index 235b01b..21fc8ac 100644
--- a/src/livestreamer/stream.py
+++ b/src/livestreamer/stream.py
@@ -1,5 +1,6 @@
from livestreamer.utils import urlopen
+import os
import pbs
class StreamError(Exception):
@@ -21,6 +22,7 @@ class RTMPStream(Stream):
self.params["flv"] = "-"
self.params["_bg"] = True
+ self.params["_err"] = open(os.devnull, "w")
stream = rtmpdump(**self.params)