lu-zero/decklink-ffmpeg — pull request #1 by hoffie (2012-03-06 22:51:28+00:00)
Title: Several updates/fixes, including generic audio/video source selection

Hi Luca,

once again it's the time of the year where I have to establish some live streaming setup. Similar to last year, I will be once again using your decklink-ffmpeg project, which has already helped a lot. So, thanks once again. :)

The most important fixes/additions include segfault fixes, generic video/audio source selection and SDK-7.3 compatibility. The latter is required because we have a strange video source (a Mac Pro) which is only detected by driver version 7.3, any newer driver is unable to detect a valid signal. We are in contact with Blackmagic regarding this behavior. The specific change should not break anything (at least hopefully).

The other changes are mostly maintainance- or setup-specific, but reworked in a way which should be generic enough to include them anyway.

Most of the changes only affect bmdcapture and not bmdplay or genlock, but they should be rather easy to copy around if someone needs it (especially the source selection stuff).

Regarding coding style, I have mainly tried to eliminate tabs (as most of the code used spaces, although not consistently) and I have tried to unify bracket usage. To be honest, I don't care which formatting you'd prefer, I'd take/implement anything, I'd just want it consistent.

Other than that, the comments/commit messages should help explain my changes.

If you have any questions, feel free to ask back. I'd be happy to get most (if not all) changes merged so that I don't have to backport any improvements on your side to my repo. Besides that, others can take advantage from my changes, I hope.

Best regards,

Christian