[Nice] [nice/master] Add some debugging messages to the gst elements
Olivier Crete
olivier.crete at collabora.co.uk
Wed Nov 5 14:01:05 PST 2008
darcs-hash:20080425204105-3e2dc-275f3d4f39042cdda9bdb58a647db4386b059b2b.gz
---
gst/gstnicesrc.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index db3321f..c9a967e 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -190,6 +190,8 @@ gst_nice_src_read_callback (NiceAgent *agent,
GstBaseSrc *basesrc = GST_BASE_SRC (data);
GstNiceSrc *nicesrc = GST_NICE_SRC (basesrc);
+ GST_LOG_OBJECT (agent, "Got buffer, getting out of the main loop");
+
nicesrc->flow_ret = gst_pad_alloc_buffer (basesrc->srcpad, nicesrc->offset,
len, GST_PAD_CAPS (basesrc->srcpad), &nicesrc->outbuf);
if (nicesrc->flow_ret == GST_FLOW_OK) {
@@ -256,6 +258,8 @@ gst_nice_src_create (
{
GstNiceSrc *nicesrc = GST_NICE_SRC (basesrc);
+ GST_LOG_OBJECT (nicesrc, "create called");
+
nicesrc->outbuf = NULL;
nicesrc->offset = offset;
@@ -269,6 +273,8 @@ gst_nice_src_create (
g_main_loop_run (nicesrc->mainloop);
if (nicesrc->outbuf) {
+ GST_LOG_OBJECT (nicesrc, "Got buffer, pushing");
+
*buffer = nicesrc->outbuf;
return nicesrc->flow_ret;
} else {
--
1.5.6.5
More information about the Nice
mailing list