[Bug 783520] New: Removing default debug/log function doesn't work in python
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jun 7 17:02:48 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=783520
Bug ID: 783520
Summary: Removing default debug/log function doesn't work in
python
Classification: Platform
Product: GStreamer
Version: 1.4.4
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: don't know
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: jspurny at seznam.cz
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
In python Gst documentation
(https://lazka.github.io/pgi-docs/Gst-1.0/functions.html#Gst.debug_log_default)
is a line which says:
"You can add other handlers by using Gst.debug_add_log_function(). And you can
remove this handler by calling
Gst.debug_remove_log_function(Gst.debug_log_default);"
This however does nothing (returns 0).
What works, is using:
Gst.debug_remove_log_function_by_data(0)
despite the documentation
(https://lazka.github.io/pgi-docs/Gst-1.0/functions.html#Gst.debug_remove_log_function_by_data),
which says:
"Parameters: func (Gst.LogFunction or None) – the log function to remove,
or None to remove the default log function"
But "None" throws: "TypeError: Argument 0 does not allow None as a value"
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list