From 413b71a4e8f52b59c873e86528a3e6fca258578c Mon Sep 17 00:00:00 2001 From: Karl Kroening Date: Sun, 25 Nov 2018 21:43:41 -0600 Subject: [PATCH] Fix RTSP/TCP socket example to use consistent indentation --- examples/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/README.md b/examples/README.md index 463f866..0f60371 100644 --- a/examples/README.md +++ b/examples/README.md @@ -190,17 +190,17 @@ process2.wait() packet_size = 4096 process = ( - ffmpeg - .input('rtsp://%s:8554/default') - .output('-', format='h264') - .run_async(pipe_stdout=True) + ffmpeg + .input('rtsp://%s:8554/default') + .output('-', format='h264') + .run_async(pipe_stdout=True) ) while process.poll() is None: - packet = process.stdout.read(packet_size) - try: - tcp_socket.send(packet) - except socket.error: + packet = process.stdout.read(packet_size) + try: + tcp_socket.send(packet) + except socket.error: process.stdout.close() process.wait() break