Fix RTSP/TCP socket example to use consistent indentation

This commit is contained in:
Karl Kroening 2018-11-25 21:43:41 -06:00
parent e5e293fca4
commit 413b71a4e8

View File

@ -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