aboutsummaryrefslogtreecommitdiffstats
path: root/src/GSTInput.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2025-08-31 18:57:19 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2025-08-31 18:57:19 +0200
commit73d0a6134a9060a9f3cf15b5ce76a5f2747fb1f2 (patch)
tree33a71a379faa2c27b569ce5c43f3ccfc42085886 /src/GSTInput.cpp
parentc4f0ba1c9c909f7c1ac697068197b681cd567beb (diff)
parentd31dad0b24775cf84d308b94c3fbd0187c476c14 (diff)
downloadODR-AudioEnc-73d0a6134a9060a9f3cf15b5ce76a5f2747fb1f2.tar.gz
ODR-AudioEnc-73d0a6134a9060a9f3cf15b5ce76a5f2747fb1f2.tar.bz2
ODR-AudioEnc-73d0a6134a9060a9f3cf15b5ce76a5f2747fb1f2.zip
Merge PR #38 with logging improvements from rmens
Diffstat (limited to 'src/GSTInput.cpp')
-rw-r--r--src/GSTInput.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GSTInput.cpp b/src/GSTInput.cpp
index af27db1..811c13d 100644
--- a/src/GSTInput.cpp
+++ b/src/GSTInput.cpp
@@ -26,6 +26,7 @@
#include <cstring>
#include "GSTInput.h"
+#include "Log.h"
#include "config.h"
@@ -59,8 +60,8 @@ static void error_cb(GstBus *bus, GstMessage *msg, GSTData *data)
/* Print error details on the screen */
gst_message_parse_error(msg, &err, &debug_info);
- g_printerr("Error received from element %s: %s\n", GST_OBJECT_NAME (msg->src), err->message);
- g_printerr("Debugging information: %s\n", debug_info ? debug_info : "none");
+ etiLog.level(error) << "Error received from element " << GST_OBJECT_NAME (msg->src) << ": " << err->message;
+ etiLog.level(error) << "Debugging information: " << (debug_info ? debug_info : "none");
g_clear_error(&err);
g_free(debug_info);
}
@@ -282,7 +283,7 @@ void GSTInput::process()
{
GError *err = nullptr;
gst_message_parse_error(msg, &err, nullptr);
- fprintf(stderr, "GST error: %s\n", err->message);
+ etiLog.level(error) << "GST error: " << err->message;
g_error_free(err);
m_fault = true;
break;