avdevice/decklink: factorize device finder function