decklinkaudiosink: Fix compiler warning on OS X

While gint64 and int64_t are always the same, clang does not agree with that.

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C decklink
  CXX      libgstdecklink_la-gstdecklinkaudiosink.lo
gstdecklinkaudiosink.cpp:675:79: error: cannot initialize a parameter of type 'int64_t *' (aka 'long long *') with an rvalue of type 'gint64 *' (aka 'long *')
      ret = buf->output->attributes->GetInt (BMDDeckLinkMaximumAudioChannels, &max_channels);
                                                                              ^~~~~~~~~~~~~
./linux/DeckLinkAPI.h:692:87: note: passing argument to parameter 'value' here
    virtual HRESULT GetInt (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ int64_t *value) = 0;
                                                                                      ^
This commit is contained in:
Sebastian Dröge 2016-08-26 16:04:27 +03:00
parent 8a05102747
commit 1da1a3afc9

View file

@ -666,7 +666,7 @@ gst_decklink_audio_sink_get_caps (GstBaseSink * bsink, GstCaps * filter)
if (buf) {
GST_OBJECT_LOCK (buf);
if (buf->output && buf->output->attributes) {
gint64 max_channels = 0;
int64_t max_channels = 0;
HRESULT ret;
GstStructure *s;
GValue arr = G_VALUE_INIT;