[gstreamer-bugs] [Bug 625396] gst_debug_remove_log_function doesn't remove default log handler

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jul 28 04:25:06 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=625396
  GStreamer | gstreamer (core) | 0.10.30

--- Comment #5 from Vladimir <wl2776 at gmail.com> 2010-07-28 11:25:04 UTC ---
gst_debug_add_log_function: prepended log function 10025830 (user data
00000000) to log functions
gst_debug_add_log_function: prepended log function 00411460 (user data
00000000) to log functions
gst_debug_remove_log_funcion: removed log function 0041107D 0 times from log
function list

The situation is reproduced in the following simple program:

#include <stdio.h>
#include <gst/gst.h>

static void gst_log_function(GstDebugCategory *category, GstDebugLevel level,
            const gchar *file,const gchar *function,gint line,
            GObject *object,GstDebugMessage *message,
         gpointer data) G_GNUC_NO_INSTRUMENT
{

}

int main(int argc, char *argv[])
{
    gst_init(&argc,&argv);
    gst_debug_set_active(TRUE);
    gst_debug_add_log_function((GstLogFunction)gst_log_function,NULL);
    guint removed=gst_debug_remove_log_function(gst_debug_log_default);
    return 0;
}

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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