decklinkaudiosink: Fix compiler warning on OS X
authorSebastian Dröge <sebastian@centricular.com>
Fri, 26 Aug 2016 13:04:27 +0000 (16:04 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 26 Aug 2016 13:05:11 +0000 (16:05 +0300)
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;
                                                                                      ^

sys/decklink/gstdecklinkaudiosink.cpp

index b4c34e7..9b480d5 100644 (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;