From ba9103e1cb40e52b0afa069f2796226de1768d3c Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Thu, 16 Aug 2012 18:08:03 +0200 Subject: Check if prebuffer gets any data. --- src/livestreamer/cli.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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: -- cgit v1.2.3