mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
wpe: Logging fixes for the WebExtension
Using logging macros without a `GST_CAT_DEFAULT` in scope leads to critical warnings. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4022>
This commit is contained in:
parent
ceceefd141
commit
5bd14e4a20
2 changed files with 8 additions and 1 deletions
|
@ -296,6 +296,7 @@ webkit_extension_msg_received (WebKitWebContext *context,
|
||||||
GVariant *params = webkit_user_message_get_parameters (message);
|
GVariant *params = webkit_user_message_get_parameters (message);
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
|
|
||||||
|
GST_TRACE_OBJECT(src, "Handling message %s", name);
|
||||||
if (!g_strcmp0(name, "gstwpe.new_stream")) {
|
if (!g_strcmp0(name, "gstwpe.new_stream")) {
|
||||||
guint32 id = g_variant_get_uint32 (g_variant_get_child_value (params, 0));
|
guint32 id = g_variant_get_uint32 (g_variant_get_child_value (params, 0));
|
||||||
const gchar *capsstr = g_variant_get_string (g_variant_get_child_value (params, 1), NULL);
|
const gchar *capsstr = g_variant_get_string (g_variant_get_child_value (params, 1), NULL);
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
#include <gio/gunixfdlist.h>
|
#include <gio/gunixfdlist.h>
|
||||||
#include <wpe/webkit-web-extension.h>
|
#include <wpe/webkit-web-extension.h>
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_STATIC (wpe_extension_debug);
|
||||||
|
#define GST_CAT_DEFAULT wpe_extension_debug
|
||||||
|
|
||||||
G_MODULE_EXPORT void webkit_web_extension_initialize (WebKitWebExtension *
|
G_MODULE_EXPORT void webkit_web_extension_initialize (WebKitWebExtension *
|
||||||
extension);
|
extension);
|
||||||
|
|
||||||
|
@ -42,13 +45,16 @@ webkit_web_extension_initialize (WebKitWebExtension * extension)
|
||||||
|
|
||||||
gst_init (NULL, NULL);
|
gst_init (NULL, NULL);
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (wpe_extension_debug, "wpewebextension", 0,
|
||||||
|
"GstWPE WebExtension");
|
||||||
|
|
||||||
/* Register our own audio sink to */
|
/* Register our own audio sink to */
|
||||||
gst_element_register (NULL, "gstwpeaudiosink", GST_RANK_PRIMARY + 500,
|
gst_element_register (NULL, "gstwpeaudiosink", GST_RANK_PRIMARY + 500,
|
||||||
gst_wpe_audio_sink_get_type ());
|
gst_wpe_audio_sink_get_type ());
|
||||||
gst_object_unref (g_object_new (gst_wpe_bus_msg_forwarder_get_type (), NULL));
|
gst_object_unref (g_object_new (gst_wpe_bus_msg_forwarder_get_type (), NULL));
|
||||||
|
|
||||||
global_extension = extension;
|
global_extension = extension;
|
||||||
GST_INFO_OBJECT (global_extension, "Setting as global extension.");
|
GST_INFO ("Setting as global extension.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue