Fix crashes upon close in lowest latency mode
Fix lock when stopping under certain stop conditions
Improve checks on output type
Clarify chroma downsampling variable names
Merge branch 'master' into staging
Merge branch 'master' of github.com:ob-encoder/obe-rt

Conflicts:
	obe.c
Merge branch 'master' of github.com:ob-encoder/obe-rt
Free model name pointer
Placate C++
Don't malloc a zero byte chunk of memory.
Free output structure
Match decklink capture example with referencing
Revert "Match decklink capture example with referencing"

This reverts commit 4eb32e96611df999d4ee4255076218ae505feed7.
Destroy out_cv in queues
Fix null assignment
Separate SD/HD related functions out and detect whether card supports autodetection.
Tell decklink to detect input. Counterintuitively ask for NTSC to begin with instead of "unknown" format.
Factor out resolution/fps specific functions and handle the format change callback
Rememer to set the video format
Stop and start video after a format changed as explained by Blackmagic Support.