summaryrefslogtreecommitdiff
path: root/sys/decklink
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas@nicolas-tpx395.localdomain>2020-01-09 14:23:08 -0500
committerSebastian Dröge <slomo@coaxion.net>2020-01-10 08:00:05 +0000
commit6d6e8977627337e6b9b31814be96b3627b391c59 (patch)
tree4521f4fcee933cf15e4ca379e9a8499b0e71b944 /sys/decklink
parent4fc3aa6ef4cb52f1571e570194975cc18cc41734 (diff)
downloadgstreamer-plugins-bad-6d6e8977627337e6b9b31814be96b3627b391c59.tar.gz
decklink: Silence no driver / no SO messages
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.
Diffstat (limited to 'sys/decklink')
-rw-r--r--sys/decklink/gstdecklink.cpp2
-rw-r--r--sys/decklink/linux/DeckLinkAPIDispatch.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp
index 82fc8005d..d535c56ea 100644
--- a/sys/decklink/gstdecklink.cpp
+++ b/sys/decklink/gstdecklink.cpp
@@ -1367,7 +1367,7 @@ init_devices (gpointer data)
iterator = CreateDeckLinkIteratorInstance ();
if (iterator == NULL) {
- GST_ERROR ("no driver");
+ GST_DEBUG ("no driver");
return NULL;
}
diff --git a/sys/decklink/linux/DeckLinkAPIDispatch.cpp b/sys/decklink/linux/DeckLinkAPIDispatch.cpp
index d285337de..d9a47e3f1 100644
--- a/sys/decklink/linux/DeckLinkAPIDispatch.cpp
+++ b/sys/decklink/linux/DeckLinkAPIDispatch.cpp
@@ -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;
}