HAFFmpeg open can fail in case FFmpeg fails, so check for self._proc
before using it to read the image frame.
Fixes:
File "/usr/lib/python3.6/site-packages/haffmpeg/tools.py", line 82, in get_image
self._proc.communicate(), loop=self._loop)
AttributeError: 'NoneType' object has no attribute 'communicate'
HAFFmpeg open can fail in case FFmpeg fails, so check for self._proc before using it to read the image frame.
Fixes:
File "/usr/lib/python3.6/site-packages/haffmpeg/tools.py", line 82, in get_image self._proc.communicate(), loop=self._loop) AttributeError: 'NoneType' object has no attribute 'communicate'
Signed-off-by: Ricardo Salveti rsalveti@rsalveti.net