decklink: fix macos werror build

../sys/decklink/gstdecklink.cpp:1703:7: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
      persistent_id);
      ^~~~~~~~~~~~~~
/Library/Frameworks/GStreamer.framework/Versions/1.0/include/gstreamer-1.0/gst/gstinfo.h:1070:87: note: expanded from macro 'GST_DEBUG'
#define GST_DEBUG(...)                  GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG,   NULL, __VA_ARGS__)
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Frameworks/GStreamer.framework/Versions/1.0/include/gstreamer-1.0/gst/gstinfo.h:646:31: note: expanded from macro 'GST_CAT_LEVEL_LOG'
        (GObject *) (object), __VA_ARGS__);                             \
                              ^~~~~~~~~~~
This commit is contained in:
Matthew Waters 2019-08-30 14:15:43 +10:00
parent fa83f086be
commit 02814a43da

View file

@ -1700,7 +1700,7 @@ Device *
gst_decklink_find_device_by_persistent_id (int64_t persistent_id)
{
GST_DEBUG ("Searching Device by persistent ID %" G_GINT64_FORMAT,
persistent_id);
(gint64) persistent_id);
for (guint index = 0; index < devices->len; index++) {
Device *device = (Device *) g_ptr_array_index (devices, index);