Ignore warning messages

This commit is contained in:
Barzan Hayati 2025-07-01 16:50:27 +00:00
parent d39ed7cb02
commit 67f4d44aeb
2 changed files with 8 additions and 11 deletions

View File

@ -18,7 +18,6 @@ gboolean MessageHandling::bus_call(GstBus *bus, GstMessage *msg,
StreamData *data = static_cast<StreamData *>(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;
}

View File

@ -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<StreamData *>(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<StreamData *>(user_data);
gint source_id = data->source_id;
GstElement *streammux = data->streammux;