libavdevice/decklink: add support for -sources and -sinks arguments
authorDevin Heitmueller <dheitmueller@ltnglobal.com>
Fri, 6 Oct 2017 12:55:43 +0000 (08:55 -0400)
committerMarton Balint <cus@passwd.hu>
Tue, 10 Oct 2017 18:07:25 +0000 (20:07 +0200)
commit278588cd0bf788df0194f74e62745f68559616f9
tree6b45e4f085055a103d796dbf7dccf938de348579
parentff6de6b180fd7c931410f81fb404ab3dbf30d40b
libavdevice/decklink: add support for -sources and -sinks arguments

Add support for enumerating the sources/sinks via the ffmpeg
command line options, as opposed to having to create a real pipeline
and use the "-list_devices" option which does exit() after dumping
out the options.

Note that this patch preserves the existing "-list_devices" option,
but now shares common code for the actual enumeration.

Updated to reflect feedback from Marton Balint <cus@passwd.hu>.

Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/decklink_common.cpp
libavdevice/decklink_common.h
libavdevice/decklink_dec.cpp
libavdevice/decklink_dec.h
libavdevice/decklink_dec_c.c
libavdevice/decklink_enc.cpp
libavdevice/decklink_enc.h
libavdevice/decklink_enc_c.c