summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-11-21 17:23:46 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-11-21 17:23:46 +0000
commite879eec880a5b1286f350b31181e50c00b2dc8a4 (patch)
tree040e2ad23f666d6fa82c43bbf6ce48bd157cc27e
parent4b379f57270a99df9fff10f79d69dae421634b2e (diff)
gst/wavparse/gstwavparse.c: Use GST_DEBUG_FUNCPTR; add debug message in pad activate function.
Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_init), (gst_wavparse_create_sourcepad), (gst_wavparse_sink_activate): Use GST_DEBUG_FUNCPTR; add debug message in pad activate function.
-rw-r--r--ChangeLog6
-rw-r--r--gst/wavparse/gstwavparse.c14
2 files changed, 15 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index f8cb46a7..cfcf9501 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-21 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/wavparse/gstwavparse.c: (gst_wavparse_init),
+ (gst_wavparse_create_sourcepad), (gst_wavparse_sink_activate):
+ Use GST_DEBUG_FUNCPTR; add debug message in pad activate function.
+
2005-11-21 Michael Smith <msmith@fluendo.com>
* gst/auparse/Makefile.am:
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index 1cdc83d6..59835d0b 100644
--- a/gst/wavparse/gstwavparse.c
+++ b/gst/wavparse/gstwavparse.c
@@ -209,9 +209,10 @@ gst_wavparse_init (GstWavParse * wavparse)
gst_pad_new_from_template (gst_static_pad_template_get
(&sink_template_factory), "sink");
gst_element_add_pad (GST_ELEMENT (wavparse), wavparse->sinkpad);
- gst_pad_set_activate_function (wavparse->sinkpad, gst_wavparse_sink_activate);
+ gst_pad_set_activate_function (wavparse->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_wavparse_sink_activate));
gst_pad_set_activatepull_function (wavparse->sinkpad,
- gst_wavparse_sink_activate_pull);
+ GST_DEBUG_FUNCPTR (gst_wavparse_sink_activate_pull));
gst_wavparse_reset (wavparse);
}
@@ -235,9 +236,11 @@ gst_wavparse_create_sourcepad (GstWavParse * wavparse)
(&src_template_factory), "src");
gst_pad_use_fixed_caps (wavparse->srcpad);
gst_pad_set_query_type_function (wavparse->srcpad,
- gst_wavparse_get_query_types);
- gst_pad_set_query_function (wavparse->srcpad, gst_wavparse_pad_query);
- gst_pad_set_event_function (wavparse->srcpad, gst_wavparse_srcpad_event);
+ GST_DEBUG_FUNCPTR (gst_wavparse_get_query_types));
+ gst_pad_set_query_function (wavparse->srcpad,
+ GST_DEBUG_FUNCPTR (gst_wavparse_pad_query));
+ gst_pad_set_event_function (wavparse->srcpad,
+ GST_DEBUG_FUNCPTR (gst_wavparse_srcpad_event));
}
static void
@@ -1326,6 +1329,7 @@ gst_wavparse_sink_activate (GstPad * sinkpad)
if (gst_pad_check_pull_range (sinkpad))
return gst_pad_activate_pull (sinkpad, TRUE);
+ GST_DEBUG ("pull_range not supported on sinkpad");
return FALSE;
};