From 67f4d44aeb82d5387a1175dcff8940f2cfb11de6 Mon Sep 17 00:00:00 2001 From: Barzan Hayati Date: Tue, 1 Jul 2025 16:50:27 +0000 Subject: [PATCH] Ignore warning messages --- src/message_handling.cpp | 17 ++++++++--------- src/source_bin.cpp | 2 -- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/message_handling.cpp b/src/message_handling.cpp index 79d3029..8056a41 100644 --- a/src/message_handling.cpp +++ b/src/message_handling.cpp @@ -18,7 +18,6 @@ gboolean MessageHandling::bus_call(GstBus *bus, GstMessage *msg, StreamData *data = static_cast(user_data); GMainLoop *passed_loop = data->loop; // GMainLoop *loop= (GMainLoop *) data; - g_print("Bus_call \n"); gchar *debug; GError *error; counter_total++; @@ -77,21 +76,21 @@ gboolean MessageHandling::bus_call(GstBus *bus, GstMessage *msg, default: // g_print ("GST_MESSAGE_TYPE (msg) is %d ", GST_MESSAGE_TYPE // (msg)); - g_message("Received message of type: %s", - gst_message_type_get_name(GST_MESSAGE_TYPE(msg))); + // g_message("Received message of type: %s", + // gst_message_type_get_name(GST_MESSAGE_TYPE(msg))); // g_print (gst_message_type_get_name(GST_MESSAGE_TYPE(msg))); - g_print("%s\n", gst_message_type_get_name(GST_MESSAGE_TYPE(msg))); + // g_print("%s\n", gst_message_type_get_name(GST_MESSAGE_TYPE(msg))); // g_print (GST_MESSAGE_TYPE (msg)); break; } - g_print( - "counter_eos is %d, counter_warning is %d, counter_error is %d, " - "counter_element is %d, counter_total is %d \n", - counter_eos, counter_warning, counter_error, counter_element, - counter_total); + // g_print( + // "counter_eos is %d, counter_warning is %d, counter_error is %d, " + // "counter_element is %d, counter_total is %d \n", + // counter_eos, counter_warning, counter_error, counter_element, + // counter_total); return TRUE; } diff --git a/src/source_bin.cpp b/src/source_bin.cpp index 946c161..99207e0 100644 --- a/src/source_bin.cpp +++ b/src/source_bin.cpp @@ -8,7 +8,6 @@ void SourceBin::decodebin_child_added(GstChildProxy *child_proxy, GObject *object, gchar *name, gpointer user_data) { (void)child_proxy; // This explicitly marks it as unused - std::cout << "decodebin_child_added" << std::endl; StreamData *data = static_cast(user_data); gint source_id = data->source_id; @@ -40,7 +39,6 @@ void SourceBin::cb_newpad(GstElement *decodebin, GstPad *pad, gpointer user_data, gboolean *flag) { (void)decodebin; // This explicitly marks it as unused (void)flag; // This explicitly marks it as unused - std::cout << "cb_newpad" << std::endl; StreamData *data = static_cast(user_data); gint source_id = data->source_id; GstElement *streammux = data->streammux;