decklink: Silence no driver / no SO messages
authorNicolas Dufresne <nicolas@nicolas-tpx395.localdomain>
Thu, 9 Jan 2020 19:23:08 +0000 (14:23 -0500)
committerSebastian Dröge <slomo@coaxion.net>
Fri, 10 Jan 2020 08:00:05 +0000 (08:00 +0000)
This g_once() is called everywhere, even in provider. This cause
spurious error when device monitor is used. Just silence or remove
the spurious logs.

sys/decklink/gstdecklink.cpp
sys/decklink/linux/DeckLinkAPIDispatch.cpp

index 82fc800..d535c56 100644 (file)
@@ -1367,7 +1367,7 @@ init_devices (gpointer data)
 
   iterator = CreateDeckLinkIteratorInstance ();
   if (iterator == NULL) {
-    GST_ERROR ("no driver");
+    GST_DEBUG ("no driver");
     return NULL;
   }
 
index d285337..d9a47e3 100644 (file)
@@ -58,7 +58,10 @@ static void  InitDeckLinkAPI (void)
        libraryHandle = dlopen(kDeckLinkAPI_Name, RTLD_NOW|RTLD_GLOBAL);
        if (!libraryHandle)
        {
-               fprintf(stderr, "%s\n", dlerror());
+                /* As we install this plugin regardless if there is a
+                 * proprietary library present or not, let's stay silent
+                 * to avoid poluting the logs */
+               // fprintf(stderr, "%s\n", dlerror());
                return;
        }