lu-zero / bmdtools

Basic capture and play programs for Blackmagic Design Decklink
Boost Software License 1.0
198 stars 74 forks source link

Handle pipe error or disk full/error in bmdcapture push_packet() #82

Open vincib opened 7 years ago

vincib commented 7 years ago

In push_packet functions, the return code of av_interleaved_write_frame is ignored.

We don't know if the outfile is in a disk error, disk full, or pipe issue state. it seems you planned to do that by defining "ret" as an integer ;) This patch handle this case.

lu-zero commented 7 years ago

Sounds a good idea to check it indeed!

I'll push it with some rewording on the commit message.

In theory all the exit causes should have a proper value...