aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-16 18:08:03 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-16 18:08:03 +0200
commitba9103e1cb40e52b0afa069f2796226de1768d3c (patch)
tree5805606910c2dcb92e4d4a8dd10ade4a5e47eb33
parenta3520ccbc8c5c5fa0ded9758df9d5db38f78bd84 (diff)
Check if prebuffer gets any data.
-rw-r--r--src/livestreamer/cli.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/livestreamer/cli.py b/src/livestreamer/cli.py
index c0aa11a..233e721 100644
--- a/src/livestreamer/cli.py
+++ b/src/livestreamer/cli.py
@@ -128,6 +128,9 @@ def output_stream(stream, args):
except IOError:
exit("Failed to read data from stream")
+ if len(prebuffer) == 0:
+ exit("Failed to read data from stream")
+
logger.debug("Checking output")
if args.output: