mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-13 09:45:27 +00:00
gst/: Use GST_DEBUG_FUNCPTR() more extensively.
Original commit message from CVS: * gst/base/gstcollectpads.c: (gst_collectpads_add_pad): * gst/elements/gstfilesink.c: (gst_file_sink_init): * gst/elements/gsttypefindelement.c: (gst_type_find_element_init): * gst/gstghostpad.c: (gst_ghost_pad_set_internal), (gst_ghost_pad_init), (gst_ghost_pad_new_notarget): * gst/gstpad.c: (gst_pad_init): Use GST_DEBUG_FUNCPTR() more extensively.
This commit is contained in:
parent
8eb4781bdd
commit
fc387bfd46
9 changed files with 50 additions and 32 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2005-11-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/base/gstcollectpads.c: (gst_collectpads_add_pad):
|
||||||
|
* gst/elements/gstfilesink.c: (gst_file_sink_init):
|
||||||
|
* gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
|
||||||
|
* gst/gstghostpad.c: (gst_ghost_pad_set_internal),
|
||||||
|
(gst_ghost_pad_init), (gst_ghost_pad_new_notarget):
|
||||||
|
* gst/gstpad.c: (gst_pad_init):
|
||||||
|
Use GST_DEBUG_FUNCPTR() more extensively.
|
||||||
|
|
||||||
2005-11-09 Wim Taymans <wim@fluendo.com>
|
2005-11-09 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstobject.c: (gst_object_class_init):
|
* gst/gstobject.c: (gst_object_class_init):
|
||||||
|
|
|
@ -179,8 +179,8 @@ gst_collectpads_add_pad (GstCollectPads * pads, GstPad * pad, guint size)
|
||||||
|
|
||||||
GST_LOCK (pads);
|
GST_LOCK (pads);
|
||||||
pads->data = g_slist_append (pads->data, data);
|
pads->data = g_slist_append (pads->data, data);
|
||||||
gst_pad_set_chain_function (pad, gst_collectpads_chain);
|
gst_pad_set_chain_function (pad, GST_DEBUG_FUNCPTR (gst_collectpads_chain));
|
||||||
gst_pad_set_event_function (pad, gst_collectpads_event);
|
gst_pad_set_event_function (pad, GST_DEBUG_FUNCPTR (gst_collectpads_event));
|
||||||
gst_pad_set_element_private (pad, data);
|
gst_pad_set_element_private (pad, data);
|
||||||
pads->numpads++;
|
pads->numpads++;
|
||||||
pads->cookie++;
|
pads->cookie++;
|
||||||
|
|
|
@ -147,7 +147,7 @@ gst_file_sink_init (GstFileSink * filesink, GstFileSinkClass * g_class)
|
||||||
|
|
||||||
pad = GST_BASE_SINK_PAD (filesink);
|
pad = GST_BASE_SINK_PAD (filesink);
|
||||||
|
|
||||||
gst_pad_set_query_function (pad, gst_file_sink_query);
|
gst_pad_set_query_function (pad, GST_DEBUG_FUNCPTR (gst_file_sink_query));
|
||||||
|
|
||||||
filesink->filename = NULL;
|
filesink->filename = NULL;
|
||||||
filesink->file = NULL;
|
filesink->file = NULL;
|
||||||
|
|
|
@ -209,21 +209,24 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get
|
gst_pad_new_from_template (gst_static_pad_template_get
|
||||||
(&type_find_element_sink_template), "sink");
|
(&type_find_element_sink_template), "sink");
|
||||||
gst_pad_set_activate_function (typefind->sink,
|
gst_pad_set_activate_function (typefind->sink,
|
||||||
gst_type_find_element_activate);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
||||||
gst_pad_set_chain_function (typefind->sink, gst_type_find_element_chain);
|
gst_pad_set_chain_function (typefind->sink,
|
||||||
|
GST_DEBUG_FUNCPTR (gst_type_find_element_chain));
|
||||||
gst_pad_set_event_function (typefind->sink,
|
gst_pad_set_event_function (typefind->sink,
|
||||||
gst_type_find_element_handle_event);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_handle_event));
|
||||||
gst_element_add_pad (GST_ELEMENT (typefind), typefind->sink);
|
gst_element_add_pad (GST_ELEMENT (typefind), typefind->sink);
|
||||||
/* srcpad */
|
/* srcpad */
|
||||||
typefind->src =
|
typefind->src =
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get
|
gst_pad_new_from_template (gst_static_pad_template_get
|
||||||
(&type_find_element_src_template), "src");
|
(&type_find_element_src_template), "src");
|
||||||
gst_pad_set_activatepull_function (typefind->src,
|
gst_pad_set_activatepull_function (typefind->src,
|
||||||
gst_type_find_element_activate_src_pull);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
||||||
gst_pad_set_checkgetrange_function (typefind->src,
|
gst_pad_set_checkgetrange_function (typefind->src,
|
||||||
gst_type_find_element_checkgetrange);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_checkgetrange));
|
||||||
gst_pad_set_getrange_function (typefind->src, gst_type_find_element_getrange);
|
gst_pad_set_getrange_function (typefind->src,
|
||||||
gst_pad_set_event_function (typefind->src, gst_type_find_element_src_event);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_getrange));
|
||||||
|
gst_pad_set_event_function (typefind->src,
|
||||||
|
GST_DEBUG_FUNCPTR (gst_type_find_element_src_event));
|
||||||
gst_pad_set_query_function (typefind->src,
|
gst_pad_set_query_function (typefind->src,
|
||||||
GST_DEBUG_FUNCPTR (gst_type_find_handle_src_query));
|
GST_DEBUG_FUNCPTR (gst_type_find_handle_src_query));
|
||||||
gst_pad_use_fixed_caps (typefind->src);
|
gst_pad_use_fixed_caps (typefind->src);
|
||||||
|
|
|
@ -695,9 +695,9 @@ gst_ghost_pad_set_internal (GstGhostPad * pad, GstPad * internal)
|
||||||
G_CALLBACK (on_int_notify), pad);
|
G_CALLBACK (on_int_notify), pad);
|
||||||
on_int_notify (internal, NULL, pad);
|
on_int_notify (internal, NULL, pad);
|
||||||
gst_pad_set_activatepull_function (GST_PAD (internal),
|
gst_pad_set_activatepull_function (GST_PAD (internal),
|
||||||
gst_ghost_pad_internal_do_activate_pull);
|
GST_DEBUG_FUNCPTR (gst_ghost_pad_internal_do_activate_pull));
|
||||||
gst_pad_set_activatepush_function (GST_PAD (internal),
|
gst_pad_set_activatepush_function (GST_PAD (internal),
|
||||||
gst_ghost_pad_internal_do_activate_push);
|
GST_DEBUG_FUNCPTR (gst_ghost_pad_internal_do_activate_push));
|
||||||
/* a ref was taken by set_parent */
|
/* a ref was taken by set_parent */
|
||||||
}
|
}
|
||||||
pad->internal = internal;
|
pad->internal = internal;
|
||||||
|
@ -719,9 +719,9 @@ static void
|
||||||
gst_ghost_pad_init (GstGhostPad * pad)
|
gst_ghost_pad_init (GstGhostPad * pad)
|
||||||
{
|
{
|
||||||
gst_pad_set_activatepull_function (GST_PAD (pad),
|
gst_pad_set_activatepull_function (GST_PAD (pad),
|
||||||
gst_ghost_pad_do_activate_pull);
|
GST_DEBUG_FUNCPTR (gst_ghost_pad_do_activate_pull));
|
||||||
gst_pad_set_activatepush_function (GST_PAD (pad),
|
gst_pad_set_activatepush_function (GST_PAD (pad),
|
||||||
gst_ghost_pad_do_activate_push);
|
GST_DEBUG_FUNCPTR (gst_ghost_pad_do_activate_push));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -752,9 +752,11 @@ gst_ghost_pad_new_notarget (const gchar * name, GstPadDirection dir)
|
||||||
|
|
||||||
ret = g_object_new (GST_TYPE_GHOST_PAD, "name", name, "direction", dir, NULL);
|
ret = g_object_new (GST_TYPE_GHOST_PAD, "name", name, "direction", dir, NULL);
|
||||||
|
|
||||||
gst_pad_set_activatepush_function (ret, gst_ghost_pad_do_activate_push);
|
gst_pad_set_activatepush_function (ret,
|
||||||
gst_pad_set_link_function (ret, gst_ghost_pad_do_link);
|
GST_DEBUG_FUNCPTR (gst_ghost_pad_do_activate_push));
|
||||||
gst_pad_set_unlink_function (ret, gst_ghost_pad_do_unlink);
|
gst_pad_set_link_function (ret, GST_DEBUG_FUNCPTR (gst_ghost_pad_do_link));
|
||||||
|
gst_pad_set_unlink_function (ret,
|
||||||
|
GST_DEBUG_FUNCPTR (gst_ghost_pad_do_unlink));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
10
gst/gstpad.c
10
gst/gstpad.c
|
@ -334,11 +334,11 @@ gst_pad_init (GstPad * pad)
|
||||||
pad->linkfunc = NULL;
|
pad->linkfunc = NULL;
|
||||||
pad->getcapsfunc = NULL;
|
pad->getcapsfunc = NULL;
|
||||||
|
|
||||||
pad->activatefunc = gst_pad_activate_default;
|
pad->activatefunc = GST_DEBUG_FUNCPTR (gst_pad_activate_default);
|
||||||
pad->eventfunc = gst_pad_event_default;
|
pad->eventfunc = GST_DEBUG_FUNCPTR (gst_pad_event_default);
|
||||||
pad->querytypefunc = gst_pad_get_query_types_default;
|
pad->querytypefunc = GST_DEBUG_FUNCPTR (gst_pad_get_query_types_default);
|
||||||
pad->queryfunc = gst_pad_query_default;
|
pad->queryfunc = GST_DEBUG_FUNCPTR (gst_pad_query_default);
|
||||||
pad->intlinkfunc = gst_pad_get_internal_links_default;
|
pad->intlinkfunc = GST_DEBUG_FUNCPTR (gst_pad_get_internal_links_default);
|
||||||
|
|
||||||
pad->do_buffer_signals = 0;
|
pad->do_buffer_signals = 0;
|
||||||
pad->do_event_signals = 0;
|
pad->do_event_signals = 0;
|
||||||
|
|
|
@ -179,8 +179,8 @@ gst_collectpads_add_pad (GstCollectPads * pads, GstPad * pad, guint size)
|
||||||
|
|
||||||
GST_LOCK (pads);
|
GST_LOCK (pads);
|
||||||
pads->data = g_slist_append (pads->data, data);
|
pads->data = g_slist_append (pads->data, data);
|
||||||
gst_pad_set_chain_function (pad, gst_collectpads_chain);
|
gst_pad_set_chain_function (pad, GST_DEBUG_FUNCPTR (gst_collectpads_chain));
|
||||||
gst_pad_set_event_function (pad, gst_collectpads_event);
|
gst_pad_set_event_function (pad, GST_DEBUG_FUNCPTR (gst_collectpads_event));
|
||||||
gst_pad_set_element_private (pad, data);
|
gst_pad_set_element_private (pad, data);
|
||||||
pads->numpads++;
|
pads->numpads++;
|
||||||
pads->cookie++;
|
pads->cookie++;
|
||||||
|
|
|
@ -147,7 +147,7 @@ gst_file_sink_init (GstFileSink * filesink, GstFileSinkClass * g_class)
|
||||||
|
|
||||||
pad = GST_BASE_SINK_PAD (filesink);
|
pad = GST_BASE_SINK_PAD (filesink);
|
||||||
|
|
||||||
gst_pad_set_query_function (pad, gst_file_sink_query);
|
gst_pad_set_query_function (pad, GST_DEBUG_FUNCPTR (gst_file_sink_query));
|
||||||
|
|
||||||
filesink->filename = NULL;
|
filesink->filename = NULL;
|
||||||
filesink->file = NULL;
|
filesink->file = NULL;
|
||||||
|
|
|
@ -209,21 +209,24 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get
|
gst_pad_new_from_template (gst_static_pad_template_get
|
||||||
(&type_find_element_sink_template), "sink");
|
(&type_find_element_sink_template), "sink");
|
||||||
gst_pad_set_activate_function (typefind->sink,
|
gst_pad_set_activate_function (typefind->sink,
|
||||||
gst_type_find_element_activate);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
|
||||||
gst_pad_set_chain_function (typefind->sink, gst_type_find_element_chain);
|
gst_pad_set_chain_function (typefind->sink,
|
||||||
|
GST_DEBUG_FUNCPTR (gst_type_find_element_chain));
|
||||||
gst_pad_set_event_function (typefind->sink,
|
gst_pad_set_event_function (typefind->sink,
|
||||||
gst_type_find_element_handle_event);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_handle_event));
|
||||||
gst_element_add_pad (GST_ELEMENT (typefind), typefind->sink);
|
gst_element_add_pad (GST_ELEMENT (typefind), typefind->sink);
|
||||||
/* srcpad */
|
/* srcpad */
|
||||||
typefind->src =
|
typefind->src =
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get
|
gst_pad_new_from_template (gst_static_pad_template_get
|
||||||
(&type_find_element_src_template), "src");
|
(&type_find_element_src_template), "src");
|
||||||
gst_pad_set_activatepull_function (typefind->src,
|
gst_pad_set_activatepull_function (typefind->src,
|
||||||
gst_type_find_element_activate_src_pull);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
|
||||||
gst_pad_set_checkgetrange_function (typefind->src,
|
gst_pad_set_checkgetrange_function (typefind->src,
|
||||||
gst_type_find_element_checkgetrange);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_checkgetrange));
|
||||||
gst_pad_set_getrange_function (typefind->src, gst_type_find_element_getrange);
|
gst_pad_set_getrange_function (typefind->src,
|
||||||
gst_pad_set_event_function (typefind->src, gst_type_find_element_src_event);
|
GST_DEBUG_FUNCPTR (gst_type_find_element_getrange));
|
||||||
|
gst_pad_set_event_function (typefind->src,
|
||||||
|
GST_DEBUG_FUNCPTR (gst_type_find_element_src_event));
|
||||||
gst_pad_set_query_function (typefind->src,
|
gst_pad_set_query_function (typefind->src,
|
||||||
GST_DEBUG_FUNCPTR (gst_type_find_handle_src_query));
|
GST_DEBUG_FUNCPTR (gst_type_find_handle_src_query));
|
||||||
gst_pad_use_fixed_caps (typefind->src);
|
gst_pad_use_fixed_caps (typefind->src);
|
||||||
|
|
Loading…
Reference in a new issue