avdevice/decklink: Fix compile breakage on OSX
authorDevin Heitmueller <dheitmueller@ltnglobal.com>
Fri, 19 Oct 2018 19:35:48 +0000 (15:35 -0400)
committerMarton Balint <cus@passwd.hu>
Fri, 19 Oct 2018 23:57:08 +0000 (01:57 +0200)
Make the function static, or else Clang complains with:

error: no previous prototype for function 'decklink_get_attr_string' [-Werror,-Wmissing-prototypes]

Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/decklink_common.cpp

index b88d6c6..130e70b 100644 (file)
@@ -77,7 +77,7 @@ static IDeckLinkIterator *decklink_create_iterator(AVFormatContext *avctx)
     return iter;
 }
 
-int decklink_get_attr_string(IDeckLink *dl, BMDDeckLinkAttributeID cfg_id, const char **s)
+static int decklink_get_attr_string(IDeckLink *dl, BMDDeckLinkAttributeID cfg_id, const char **s)
 {
     DECKLINK_STR tmp;
     HRESULT hr;