From: Andy W. <wi...@us...> - 2002-03-24 22:07:42
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wingo Date: Sun Mar 24 2002 14:07:40 PST Log message: * filter newlines out of GST_DEBUG statements to reflect new core behavior * fixes to adder's caps, again Modified files: gst : cothreads.c gstautoplug.c gstbin.c gstbufferpool.c gstcaps.c gstelement.c gstelementfactory.c gstinfo.c gstinfo.h gstobject.c gstpad.c gstparse.c gstpluginfeature.c gstprops.c gstscheduler.c gstthread.c gsttimecache.c gsttype.c gsttypefind.c gstutils.c gstxml.c gst/autoplug : gstautoplugcache.c gstautoplugger.c gstsearchfuncs.c gstspider.c gstspideridentity.c gststaticautoplug.c gststaticautoplugrender.c gst/elements : gstfdsink.c gstfilesrc.c gstpipefilter.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/cothreads.c.diff?r1=1.60&r2=1.61 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstautoplug.c.diff?r1=1.27&r2=1.28 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstbin.c.diff?r1=1.123&r2=1.124 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstbufferpool.c.diff?r1=1.23&r2=1.24 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstcaps.c.diff?r1=1.44&r2=1.45 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstelement.c.diff?r1=1.122&r2=1.123 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstelementfactory.c.diff?r1=1.59&r2=1.60 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstinfo.c.diff?r1=1.38&r2=1.39 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstinfo.h.diff?r1=1.25&r2=1.26 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstobject.c.diff?r1=1.40&r2=1.41 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstpad.c.diff?r1=1.153&r2=1.154 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstparse.c.diff?r1=1.43&r2=1.44 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstpluginfeature.c.diff?r1=1.5&r2=1.6 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstprops.c.diff?r1=1.51&r2=1.52 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstscheduler.c.diff?r1=1.49&r2=1.50 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstthread.c.diff?r1=1.69&r2=1.70 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gsttimecache.c.diff?r1=1.4&r2=1.5 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gsttype.c.diff?r1=1.34&r2=1.35 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gsttypefind.c.diff?r1=1.19&r2=1.20 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstutils.c.diff?r1=1.27&r2=1.28 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstxml.c.diff?r1=1.30&r2=1.31 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gstautoplugcache.c.diff?r1=1.10&r2=1.11 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gstautoplugger.c.diff?r1=1.10&r2=1.11 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gstsearchfuncs.c.diff?r1=1.5&r2=1.6 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gstspider.c.diff?r1=1.9&r2=1.10 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gstspideridentity.c.diff?r1=1.7&r2=1.8 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gststaticautoplug.c.diff?r1=1.13&r2=1.14 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gststaticautoplugrender.c.diff?r1=1.20&r2=1.21 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/elements/gstfdsink.c.diff?r1=1.14&r2=1.15 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/elements/gstfilesrc.c.diff?r1=1.24&r2=1.25 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/elements/gstpipefilter.c.diff?r1=1.15&r2=1.16 ====Begin Diffs==== Index: cothreads.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/cothreads.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -d -r1.60 -r1.61 --- cothreads.c 24 Feb 2002 19:08:30 -0000 1.60 +++ cothreads.c 24 Mar 2002 22:07:05 -0000 1.61 @@ -175,7 +175,7 @@ stack_end = (guchar *) ((gulong) sp & ~(STACK_SIZE - 1)); thread = (cothread_state *) (stack_end + ((slot - 1) * COTHREAD_STACKSIZE)); - GST_DEBUG (0, "new stack at %p\n", thread); + GST_DEBUG (0, "new stack at %p", thread); if (mmap ((void *) thread, COTHREAD_STACKSIZE, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_FIXED | MAP_PRIVATE | MAP_ANON, -1, 0) == MAP_FAILED) { @@ -298,7 +298,7 @@ cothread_state * cothread_main (cothread_context * ctx) { - GST_DEBUG (0, "returning %p, the 0th cothread\n", ctx->threads[0]); + GST_DEBUG (0, "returning %p, the 0th cothread", ctx->threads[0]); return ctx->threads[0]; } @@ -474,21 +474,21 @@ #endif enter = setjmp (current->jmp); if (enter != 0) { - GST_DEBUG (0, "enter thread #%d %d %p<->%p (%d)\n", current->threadnum, enter, + GST_DEBUG (0, "enter thread #%d %d %p<->%p (%d)", current->threadnum, enter, current->sp, current->top_sp, (char*)current->top_sp - (char*)current->sp); return; } - GST_DEBUG (0, "exit thread #%d %d %p<->%p (%d)\n", current->threadnum, enter, + GST_DEBUG (0, "exit thread #%d %d %p<->%p (%d)", current->threadnum, enter, current->sp, current->top_sp, (char*)current->top_sp - (char*)current->sp); enter = 1; if (current->flags & COTHREAD_DESTROYED) cothread_destroy (current); - GST_DEBUG (0, "set stack to %p\n", thread->sp); + GST_DEBUG (0, "set stack to %p", thread->sp); /* restore stack pointer and other stuff of new cothread */ if (thread->flags & COTHREAD_STARTED) { - GST_DEBUG (0, "in thread \n"); + GST_DEBUG (0, "in thread "); /* switch to it */ longjmp (thread->jmp, 1); } @@ -497,7 +497,7 @@ GST_ARCH_SET_SP (thread->sp); /* start it */ GST_ARCH_CALL (cothread_stub); - GST_DEBUG (0, "exit thread \n"); + GST_DEBUG (0, "exit thread "); ctx->current = 0; } Index: gstautoplug.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstautoplug.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- gstautoplug.c 14 Dec 2001 22:59:20 -0000 1.27 +++ gstautoplug.c 24 Mar 2002 22:07:06 -0000 1.28 @@ -293,7 +293,7 @@ g_return_val_if_fail(name != NULL, NULL); - GST_DEBUG (0,"gstautoplug: find \"%s\"\n", name); + GST_DEBUG (0,"gstautoplug: find \"%s\"", name); walk = _gst_autoplugfactories; while (walk) { Index: gstbin.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstbin.c,v retrieving revision 1.123 retrieving revision 1.124 diff -u -d -r1.123 -r1.124 --- gstbin.c 18 Mar 2002 04:41:35 -0000 1.123 +++ gstbin.c 24 Mar 2002 22:07:06 -0000 1.124 @@ -187,7 +187,7 @@ gst_bin_distribute_clock (GstBin *bin, GList *needing, GstClock *clock) { while (needing) { - GST_DEBUG (GST_CAT_CLOCK, "setting clock on %s\n", GST_ELEMENT_NAME (needing->data)); + GST_DEBUG (GST_CAT_CLOCK, "setting clock on %s", GST_ELEMENT_NAME (needing->data)); gst_element_set_clock (GST_ELEMENT (needing->data), clock); needing = g_list_next (needing); @@ -209,7 +209,7 @@ clock = gst_element_get_clock (GST_ELEMENT (providing->data)); } else { - GST_DEBUG (GST_CAT_CLOCK, "no clock provided, using default clock\n"); + GST_DEBUG (GST_CAT_CLOCK, "no clock provided, using default clock"); clock = gst_system_clock_obtain (); } @@ -382,7 +382,7 @@ g_return_if_fail (element != NULL); g_return_if_fail (GST_IS_ELEMENT (element)); - GST_DEBUG (GST_CAT_PARENTAGE, "adding element \"%s\" to bin \"%s\"\n", + GST_DEBUG (GST_CAT_PARENTAGE, "adding element \"%s\" to bin \"%s\"", GST_ELEMENT_NAME (element), GST_ELEMENT_NAME (bin)); /* must be not be in PLAYING state in order to modify bin */ @@ -550,7 +550,7 @@ switch (gst_element_set_state (child, pending)) { case GST_STATE_FAILURE: GST_STATE_PENDING (element) = GST_STATE_VOID_PENDING; - GST_DEBUG (GST_CAT_STATES, "child '%s' failed to go to state %d(%s)\n", + GST_DEBUG (GST_CAT_STATES, "child '%s' failed to go to state %d(%s)", GST_ELEMENT_NAME (child), pending, gst_element_statename (pending)); gst_element_set_state (child, old_state); @@ -562,7 +562,7 @@ } break; case GST_STATE_ASYNC: - GST_DEBUG (GST_CAT_STATES, "child '%s' is changing state asynchronously\n", + GST_DEBUG (GST_CAT_STATES, "child '%s' is changing state asynchronously", GST_ELEMENT_NAME (child)); have_async = TRUE; break; @@ -663,7 +663,7 @@ { GstBinClass *oclass; - GST_DEBUG (GST_CAT_STATES, "gst_bin_set_state_type(\"%s\",%d,%s)\n", + GST_DEBUG (GST_CAT_STATES, "gst_bin_set_state_type(\"%s\",%d,%s)", GST_ELEMENT_NAME (bin), state, G_OBJECT_TYPE_NAME (type)); g_return_val_if_fail (bin != NULL, FALSE); @@ -683,7 +683,7 @@ GList *children, *orig; GstElement *child; - GST_DEBUG (GST_CAT_REFCOUNTING, "dispose\n"); + GST_DEBUG (GST_CAT_REFCOUNTING, "dispose"); if (gst_element_get_state (GST_ELEMENT (object)) == GST_STATE_PLAYING) gst_element_set_state (GST_ELEMENT (object), GST_STATE_PAUSED); Index: gstbufferpool.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstbufferpool.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- gstbufferpool.c 4 Feb 2002 22:41:23 -0000 1.23 +++ gstbufferpool.c 24 Mar 2002 22:07:06 -0000 1.24 @@ -59,7 +59,7 @@ GstBufferPool *pool; pool = g_new0 (GstBufferPool, 1); - GST_DEBUG (GST_CAT_BUFFER,"allocating new buffer pool %p\n", pool); + GST_DEBUG (GST_CAT_BUFFER,"allocating new buffer pool %p", pool); /* all hooks and user data set to NULL or 0 by g_new0 */ @@ -84,7 +84,7 @@ { g_return_if_fail (pool != NULL); - GST_DEBUG(GST_CAT_BUFFER,"referencing buffer pool %p from %d\n", pool, GST_BUFFER_POOL_REFCOUNT(pool)); + GST_DEBUG(GST_CAT_BUFFER,"referencing buffer pool %p from %d", pool, GST_BUFFER_POOL_REFCOUNT(pool)); #ifdef HAVE_ATOMIC_H atomic_inc (&(pool->refcount)); @@ -135,7 +135,7 @@ g_return_if_fail (pool != NULL); - GST_DEBUG(GST_CAT_BUFFER, "unreferencing buffer pool %p from %d\n", pool, GST_BUFFER_POOL_REFCOUNT(pool)); + GST_DEBUG(GST_CAT_BUFFER, "unreferencing buffer pool %p from %d", pool, GST_BUFFER_POOL_REFCOUNT(pool)); #ifdef HAVE_ATOMIC_H g_return_if_fail (atomic_read (&(pool->refcount)) > 0); @@ -332,7 +332,7 @@ g_hash_table_insert(_default_pools,GINT_TO_POINTER(real_buffer_size),pool); g_mutex_unlock (_default_pool_lock); - GST_DEBUG(GST_CAT_BUFFER,"new buffer pool %p bytes:%d size:%d\n", pool, real_buffer_size, pool_size); + GST_DEBUG(GST_CAT_BUFFER,"new buffer pool %p bytes:%d size:%d", pool, real_buffer_size, pool_size); return pool; } @@ -381,7 +381,7 @@ GstBufferPoolDefault *def = (GstBufferPoolDefault*) user_data; GMemChunk *data_chunk = def->mem_chunk; - GST_DEBUG(GST_CAT_BUFFER,"destroying default buffer pool %p\n", pool); + GST_DEBUG(GST_CAT_BUFFER,"destroying default buffer pool %p", pool); g_mutex_free (pool->lock); g_mem_chunk_reset(data_chunk); Index: gstcaps.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstcaps.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- gstcaps.c 3 Mar 2002 00:44:39 -0000 1.44 +++ gstcaps.c 24 Mar 2002 22:07:06 -0000 1.45 @@ -155,13 +155,13 @@ { GST_DEBUG_ENTER ("caps debug: %s", label); while (caps) { - GST_DEBUG (GST_CAT_CAPS, "caps: %p %s %s\n", caps, caps->name, gst_caps_get_mime (caps)); + GST_DEBUG (GST_CAT_CAPS, "caps: %p %s %s", caps, caps->name, gst_caps_get_mime (caps)); if (caps->properties) { gst_props_debug (caps->properties); } else { - GST_DEBUG (GST_CAT_CAPS, "no properties\n"); + GST_DEBUG (GST_CAT_CAPS, "no properties"); } caps = caps->next; @@ -561,7 +561,7 @@ gst_caps_check_compatibility_func (GstCaps *fromcaps, GstCaps *tocaps) { if (fromcaps->id != tocaps->id) { - GST_DEBUG (GST_CAT_CAPS,"mime types differ (%s to %s)\n", + GST_DEBUG (GST_CAT_CAPS,"mime types differ (%s to %s)", gst_type_find_by_id (fromcaps->id)->mime, gst_type_find_by_id (tocaps->id)->mime); return FALSE; @@ -572,13 +572,13 @@ return gst_props_check_compatibility (fromcaps->properties, tocaps->properties); } else { - GST_DEBUG (GST_CAT_CAPS,"no source caps\n"); + GST_DEBUG (GST_CAT_CAPS,"no source caps"); return FALSE; } } else { /* assume it accepts everything */ - GST_DEBUG (GST_CAT_CAPS,"no caps\n"); + GST_DEBUG (GST_CAT_CAPS,"no caps"); return TRUE; } } @@ -597,17 +597,17 @@ { if (fromcaps == NULL) { if (tocaps == NULL) { - GST_DEBUG (GST_CAT_CAPS,"no caps\n"); + GST_DEBUG (GST_CAT_CAPS,"no caps"); return TRUE; } else { - GST_DEBUG (GST_CAT_CAPS,"no source but destination caps\n"); + GST_DEBUG (GST_CAT_CAPS,"no source but destination caps"); return FALSE; } } else { if (tocaps == NULL) { - GST_DEBUG (GST_CAT_CAPS,"source caps and no destination caps\n"); + GST_DEBUG (GST_CAT_CAPS,"source caps and no destination caps"); return TRUE; } } @@ -633,7 +633,7 @@ GstProps *props; if (caps1->id != caps2->id) { - GST_DEBUG (GST_CAT_CAPS,"mime types differ (%s to %s)\n", + GST_DEBUG (GST_CAT_CAPS,"mime types differ (%s to %s)", gst_type_find_by_id (caps1->id)->mime, gst_type_find_by_id (caps2->id)->mime); return NULL; @@ -670,11 +670,11 @@ GstCaps *result = NULL, *walk = NULL; if (caps1 == NULL) { - GST_DEBUG (GST_CAT_CAPS, "first caps is NULL, return other caps\n"); + GST_DEBUG (GST_CAT_CAPS, "first caps is NULL, return other caps"); return gst_caps_copy (caps2); } if (caps2 == NULL) { - GST_DEBUG (GST_CAT_CAPS, "second caps is NULL, return other caps\n"); + GST_DEBUG (GST_CAT_CAPS, "second caps is NULL, return other caps"); return gst_caps_copy (caps1); } Index: gstelement.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstelement.c,v retrieving revision 1.122 retrieving revision 1.123 diff -u -d -r1.122 -r1.123 --- gstelement.c 24 Mar 2002 11:32:03 -0000 1.122 +++ gstelement.c 24 Mar 2002 22:07:06 -0000 1.123 @@ -342,7 +342,7 @@ g_return_if_fail (gst_object_check_uniqueness (element->pads, GST_PAD_NAME(pad)) == TRUE); /* set the pad's parent */ - GST_DEBUG (GST_CAT_ELEMENT_PADS,"setting parent of pad '%s' to '%s'\n", + GST_DEBUG (GST_CAT_ELEMENT_PADS,"setting parent of pad '%s' to '%s'", GST_PAD_NAME (pad), GST_ELEMENT_NAME (element)); gst_object_set_parent (GST_OBJECT (pad), GST_OBJECT (element)); @@ -419,19 +419,19 @@ /* then check to see if there's already a pad by that name here */ g_return_val_if_fail (gst_object_check_uniqueness (element->pads, name) == TRUE, NULL); - GST_DEBUG(GST_CAT_ELEMENT_PADS,"creating new ghost pad called %s, from pad %s:%s\n", + GST_DEBUG(GST_CAT_ELEMENT_PADS,"creating new ghost pad called %s, from pad %s:%s", name,GST_DEBUG_PAD_NAME(pad)); ghostpad = gst_ghost_pad_new (name, pad); /* add it to the list */ - GST_DEBUG(GST_CAT_ELEMENT_PADS,"adding ghost pad %s to element %s\n", + GST_DEBUG(GST_CAT_ELEMENT_PADS,"adding ghost pad %s to element %s", name, GST_ELEMENT_NAME (element)); element->pads = g_list_append (element->pads, ghostpad); element->numpads++; /* set the parent of the ghostpad */ gst_object_set_parent (GST_OBJECT (ghostpad), GST_OBJECT (element)); - GST_DEBUG(GST_CAT_ELEMENT_PADS,"added ghostpad %s:%s\n",GST_DEBUG_PAD_NAME(ghostpad)); + GST_DEBUG(GST_CAT_ELEMENT_PADS,"added ghostpad %s:%s",GST_DEBUG_PAD_NAME(ghostpad)); /* emit the NEW_GHOST_PAD signal */ g_signal_emit (G_OBJECT (element), gst_element_signals[NEW_PAD], 0, ghostpad); @@ -606,7 +606,7 @@ GstPadTemplate *newtempl = NULL; GList *padlist; - GST_DEBUG(GST_CAT_ELEMENT_PADS,"gst_element_get_padtemplate_by_compatible()\n"); + GST_DEBUG(GST_CAT_ELEMENT_PADS,"gst_element_get_padtemplate_by_compatible()"); g_return_val_if_fail (element != NULL, NULL); g_return_val_if_fail (GST_IS_ELEMENT (element), NULL); @@ -623,19 +623,19 @@ * Check direction (must be opposite) * Check caps */ - GST_DEBUG(GST_CAT_CAPS,"checking direction and caps\n"); + GST_DEBUG(GST_CAT_CAPS,"checking direction and caps"); if (padtempl->direction == GST_PAD_SRC && compattempl->direction == GST_PAD_SINK) { - GST_DEBUG(GST_CAT_CAPS,"compatible direction: found src pad template\n"); + GST_DEBUG(GST_CAT_CAPS,"compatible direction: found src pad template"); compat = gst_caps_check_compatibility(GST_PADTEMPLATE_CAPS (padtempl), GST_PADTEMPLATE_CAPS (compattempl)); - GST_DEBUG(GST_CAT_CAPS,"caps are %scompatible\n", (compat?"":"not ")); + GST_DEBUG(GST_CAT_CAPS,"caps are %scompatible", (compat?"":"not ")); } else if (padtempl->direction == GST_PAD_SINK && compattempl->direction == GST_PAD_SRC) { - GST_DEBUG(GST_CAT_CAPS,"compatible direction: found sink pad template\n"); + GST_DEBUG(GST_CAT_CAPS,"compatible direction: found sink pad template"); compat = gst_caps_check_compatibility(GST_PADTEMPLATE_CAPS (compattempl), GST_PADTEMPLATE_CAPS (padtempl)); - GST_DEBUG(GST_CAT_CAPS,"caps are %scompatible\n", (compat?"":"not ")); + GST_DEBUG(GST_CAT_CAPS,"caps are %scompatible", (compat?"":"not ")); } if (compat) { @@ -872,7 +872,7 @@ g_return_val_if_fail (dest != NULL, FALSE); g_return_val_if_fail (GST_IS_ELEMENT(dest), FALSE); - GST_DEBUG (GST_CAT_ELEMENT_PADS, "attempting to connect element %s to element %s\n", GST_ELEMENT_NAME (src), GST_ELEMENT_NAME (dest)); + GST_DEBUG (GST_CAT_ELEMENT_PADS, "attempting to connect element %s to element %s", GST_ELEMENT_NAME (src), GST_ELEMENT_NAME (dest)); /* loop through the existing pads in the source */ srcpads = gst_element_get_pad_list (src); @@ -885,7 +885,7 @@ (GST_PAD_PEER (srcpad) == NULL)) { destpad = gst_element_get_compatible_pad_filtered (dest, srcpad, filtercaps); if (destpad && gst_pad_connect_filtered (srcpad, destpad, filtercaps)) { - GST_DEBUG (GST_CAT_ELEMENT_PADS, "connected pad %s:%s to pad %s:%s\n", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (destpad)); + GST_DEBUG (GST_CAT_ELEMENT_PADS, "connected pad %s:%s to pad %s:%s", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (destpad)); return TRUE; } } @@ -899,7 +899,7 @@ (GST_PAD_PEER (destpad) == NULL)) { srcpad = gst_element_get_compatible_pad_filtered (src, destpad, filtercaps); if (srcpad && gst_pad_connect_filtered (srcpad, destpad, filtercaps)) { - GST_DEBUG (GST_CAT_ELEMENT_PADS, "connected pad %s:%s to pad %s:%s\n", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (destpad)); + GST_DEBUG (GST_CAT_ELEMENT_PADS, "connected pad %s:%s to pad %s:%s", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (destpad)); return TRUE; } } @@ -907,7 +907,7 @@ } } - GST_DEBUG (GST_CAT_ELEMENT_PADS, "we might have request pads on both sides, checking...\n"); + GST_DEBUG (GST_CAT_ELEMENT_PADS, "we might have request pads on both sides, checking..."); srctempls = gst_element_get_padtemplate_list (src); desttempls = gst_element_get_padtemplate_list (dest); @@ -923,7 +923,7 @@ srcpad = gst_element_request_pad_by_name (src, srctempl->name_template); destpad = gst_element_request_pad_by_name (dest, desttempl->name_template); if (gst_pad_connect_filtered (srcpad, destpad, filtercaps)) { - GST_DEBUG (GST_CAT_ELEMENT_PADS, "connected pad %s:%s to pad %s:%s\n", + GST_DEBUG (GST_CAT_ELEMENT_PADS, "connected pad %s:%s to pad %s:%s", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (destpad)); return TRUE; } @@ -936,7 +936,7 @@ } } - GST_DEBUG (GST_CAT_ELEMENT_PADS, "no connection possible from %s to %s\n", GST_ELEMENT_NAME (src), GST_ELEMENT_NAME (dest)); + GST_DEBUG (GST_CAT_ELEMENT_PADS, "no connection possible from %s to %s", GST_ELEMENT_NAME (src), GST_ELEMENT_NAME (dest)); return FALSE; } @@ -1133,7 +1133,7 @@ { /* tell the parent */ if (GST_OBJECT_PARENT (element)) { - GST_DEBUG (GST_CAT_EVENT, "forwarding error \"%s\" from %s to %s\n", errormsg, + GST_DEBUG (GST_CAT_EVENT, "forwarding error \"%s\" from %s to %s", errormsg, GST_ELEMENT_NAME (element), GST_OBJECT_NAME (GST_OBJECT_PARENT (element))); gst_object_ref (GST_OBJECT (element)); @@ -1493,7 +1493,7 @@ pad = GST_PAD (pads->data); if (GST_PAD_PEER (pad)) { - GST_DEBUG (GST_CAT_REFCOUNTING, "disconnecting pad '%s'\n", + GST_DEBUG (GST_CAT_REFCOUNTING, "disconnecting pad '%s'", GST_OBJECT_NAME (GST_OBJECT (GST_PAD (GST_PAD_PEER (pad))))); gst_pad_disconnect (pad, GST_PAD (GST_PAD_PEER (pad))); } @@ -1750,7 +1750,7 @@ { g_return_if_fail (GST_IS_ELEMENT (element)); - GST_DEBUG (GST_CAT_EVENT, "setting EOS on element %s\n", GST_OBJECT_NAME (element)); + GST_DEBUG (GST_CAT_EVENT, "setting EOS on element %s", GST_OBJECT_NAME (element)); gst_element_set_state (element, GST_STATE_PAUSED); Index: gstelementfactory.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstelementfactory.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- gstelementfactory.c 4 Mar 2002 22:01:42 -0000 1.59 +++ gstelementfactory.c 24 Mar 2002 22:07:06 -0000 1.60 @@ -122,7 +122,7 @@ } /* this should be an ERROR */ - GST_DEBUG (GST_CAT_ELEMENTFACTORY,"no such elementfactory \"%s\"\n", name); + GST_DEBUG (GST_CAT_ELEMENTFACTORY,"no such elementfactory \"%s\"", name); return NULL; } @@ -223,7 +223,7 @@ g_return_val_if_fail(factory != NULL, NULL); - GST_DEBUG (GST_CAT_ELEMENTFACTORY,"creating element from factory \"%s\" with name \"%s\" and type %d\n", + GST_DEBUG (GST_CAT_ELEMENTFACTORY,"creating element from factory \"%s\" with name \"%s\" and type %d", GST_OBJECT_NAME (factory), name, (gint) factory->type); if (!gst_plugin_feature_ensure_loaded (GST_PLUGIN_FEATURE (factory))) @@ -242,7 +242,7 @@ /* attempt to set the elemenfactory class pointer if necessary */ oclass = GST_ELEMENT_CLASS(G_OBJECT_GET_CLASS(element)); if (oclass->elementfactory == NULL) { - GST_DEBUG (GST_CAT_ELEMENTFACTORY,"class %s\n", GST_OBJECT_NAME (factory)); + GST_DEBUG (GST_CAT_ELEMENTFACTORY,"class %s", GST_OBJECT_NAME (factory)); oclass->elementfactory = factory; /* copy pad template pointers to the element class, allow for custom padtemplates */ @@ -274,7 +274,7 @@ g_return_val_if_fail (factoryname != NULL, NULL); - GST_DEBUG (GST_CAT_ELEMENTFACTORY, "gstelementfactory: make \"%s\" \"%s\"\n", factoryname, name); + GST_DEBUG (GST_CAT_ELEMENTFACTORY, "gstelementfactory: make \"%s\" \"%s\"", factoryname, name); /* gst_plugin_load_elementfactory(factoryname); */ factory = gst_elementfactory_find(factoryname); Index: gstinfo.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstinfo.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- gstinfo.c 24 Mar 2002 20:55:44 -0000 1.38 +++ gstinfo.c 24 Mar 2002 22:07:06 -0000 1.39 @@ -507,7 +507,7 @@ gchar *name = _gst_debug_nameof_funcptr (this_fn); gchar *site = _gst_debug_nameof_funcptr (call_site); - GST_DEBUG(GST_CAT_CALL_TRACE, "entering function %s from %s\n", name, site); + GST_DEBUG(GST_CAT_CALL_TRACE, "entering function %s from %s", name, site); stack_trace = g_slist_prepend (stack_trace, g_strdup_printf ("%8p in %s from %p (%s)", this_fn, name, call_site, site)); g_free (name); @@ -519,7 +519,7 @@ { gchar *name = _gst_debug_nameof_funcptr (this_fn); - GST_DEBUG(GST_CAT_CALL_TRACE, "leaving function %s\n", name); + GST_DEBUG(GST_CAT_CALL_TRACE, "leaving function %s", name); g_free (stack_trace->data); stack_trace = g_slist_delete_link (stack_trace, stack_trace); Index: gstinfo.h =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstinfo.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- gstinfo.h 20 Feb 2002 16:42:16 -0000 1.25 +++ gstinfo.h 24 Mar 2002 22:07:06 -0000 1.26 @@ -165,11 +165,11 @@ "''", GST_OBJECT_NAME (pad) #ifdef GST_DEBUG_COLOR - #define GST_DEBUG_ENTER(format, args...) GST_DEBUG( 31 , format ": \033[00;37mentering\033[00m\n" , ##args ) - #define GST_DEBUG_LEAVE(format, args...) GST_DEBUG( 31 , format ": \033[00;37mleaving\033[00m\n" , ##args ) + #define GST_DEBUG_ENTER(format, args...) GST_DEBUG( 31 , format ": \033[00;37mentering\033[00m" , ##args ) + #define GST_DEBUG_LEAVE(format, args...) GST_DEBUG( 31 , format ": \033[00;37mleaving\033[00m" , ##args ) #else - #define GST_DEBUG_ENTER(format, args...) GST_DEBUG( 31 , format ": entering\n" , ##args ) - #define GST_DEBUG_LEAVE(format, args...) GST_DEBUG( 31 , format ": leaving\n" , ##args ) + #define GST_DEBUG_ENTER(format, args...) GST_DEBUG( 31 , format ": entering" , ##args ) + #define GST_DEBUG_LEAVE(format, args...) GST_DEBUG( 31 , format ": leaving" , ##args ) #endif Index: gstobject.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstobject.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- gstobject.c 3 Mar 2002 19:30:10 -0000 1.40 +++ gstobject.c 24 Mar 2002 22:07:06 -0000 1.41 @@ -168,7 +168,7 @@ { g_return_val_if_fail (GST_IS_OBJECT (object), NULL); - GST_DEBUG (GST_CAT_REFCOUNTING, "ref '%s' %d->%d\n",GST_OBJECT_NAME(object), + GST_DEBUG (GST_CAT_REFCOUNTING, "ref '%s' %d->%d",GST_OBJECT_NAME(object), G_OBJECT(object)->ref_count,G_OBJECT(object)->ref_count+1); g_object_ref (G_OBJECT (object)); @@ -188,7 +188,7 @@ { g_return_if_fail (GST_IS_OBJECT (object)); - GST_DEBUG (GST_CAT_REFCOUNTING, "unref '%s' %d->%d\n",GST_OBJECT_NAME(object), + GST_DEBUG (GST_CAT_REFCOUNTING, "unref '%s' %d->%d",GST_OBJECT_NAME(object), G_OBJECT(object)->ref_count,G_OBJECT(object)->ref_count-1); g_object_unref (G_OBJECT (object)); @@ -209,7 +209,7 @@ g_return_if_fail (object != NULL); g_return_if_fail (GST_IS_OBJECT (object)); - GST_DEBUG (GST_CAT_REFCOUNTING, "sink '%s'\n",GST_OBJECT_NAME(object)); + GST_DEBUG (GST_CAT_REFCOUNTING, "sink '%s'",GST_OBJECT_NAME(object)); if (GST_OBJECT_FLOATING (object)) { GST_FLAG_UNSET (object, GST_FLOATING); @@ -229,7 +229,7 @@ g_return_if_fail (object != NULL); g_return_if_fail (GST_IS_OBJECT (object)); - GST_DEBUG (GST_CAT_REFCOUNTING, "destroy '%s'\n",GST_OBJECT_NAME(object)); + GST_DEBUG (GST_CAT_REFCOUNTING, "destroy '%s'",GST_OBJECT_NAME(object)); if (!GST_OBJECT_DESTROYED (object)) { /* need to hold a reference count around all class method @@ -242,7 +242,7 @@ static void gst_object_dispose (GObject *object) { - GST_DEBUG (GST_CAT_REFCOUNTING, "dispose '%s'\n",GST_OBJECT_NAME(object)); + GST_DEBUG (GST_CAT_REFCOUNTING, "dispose '%s'",GST_OBJECT_NAME(object)); GST_FLAG_SET (GST_OBJECT (object), GST_DESTROYED); GST_OBJECT_PARENT (object) = NULL; @@ -255,7 +255,7 @@ { GstObject *gstobject = GST_OBJECT (object); - GST_DEBUG (GST_CAT_REFCOUNTING, "finalize '%s'\n",GST_OBJECT_NAME(object)); + GST_DEBUG (GST_CAT_REFCOUNTING, "finalize '%s'",GST_OBJECT_NAME(object)); g_signal_handlers_destroy (object); @@ -397,7 +397,7 @@ if (object->parent == NULL) return; - GST_DEBUG (GST_CAT_REFCOUNTING, "unparent '%s'\n",GST_OBJECT_NAME(object)); + GST_DEBUG (GST_CAT_REFCOUNTING, "unparent '%s'",GST_OBJECT_NAME(object)); object->parent = NULL; gst_object_unref (object); @@ -631,7 +631,7 @@ while (gst_object) { /* need own category? */ - GST_DEBUG (GST_CAT_EVENT, "deep notification from %s to %s\n", GST_OBJECT_NAME (object), GST_OBJECT_NAME (gst_object)); + GST_DEBUG (GST_CAT_EVENT, "deep notification from %s to %s", GST_OBJECT_NAME (object), GST_OBJECT_NAME (gst_object)); for (i = 0; i < n_pspecs; i++) g_signal_emit (gst_object, gst_object_signals[DEEP_NOTIFY], g_quark_from_string (pspecs[i]->name), (GstObject *) object, pspecs[i]); Index: gstpad.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstpad.c,v retrieving revision 1.153 retrieving revision 1.154 diff -u -d -r1.153 -r1.154 --- gstpad.c 18 Mar 2002 04:41:35 -0000 1.153 +++ gstpad.c 24 Mar 2002 22:07:06 -0000 1.154 @@ -228,10 +228,10 @@ switch (prop_id) { case REAL_ARG_ACTIVE: if (g_value_get_boolean (value)) { - GST_DEBUG (GST_CAT_PADS, "activating pad %s:%s\n", GST_DEBUG_PAD_NAME (object)); + GST_DEBUG (GST_CAT_PADS, "activating pad %s:%s", GST_DEBUG_PAD_NAME (object)); GST_FLAG_UNSET (object, GST_PAD_DISABLED); } else { - GST_DEBUG (GST_CAT_PADS, "de-activating pad %s:%s\n", GST_DEBUG_PAD_NAME (object)); + GST_DEBUG (GST_CAT_PADS, "de-activating pad %s:%s", GST_DEBUG_PAD_NAME (object)); GST_FLAG_SET (object, GST_PAD_DISABLED); } g_signal_emit (G_OBJECT (object), gst_real_pad_signals[REAL_SET_ACTIVE], 0, @@ -375,7 +375,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_CHAINFUNC(pad) = chain; - GST_DEBUG (GST_CAT_PADS, "chainfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "chainfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (chain)); } @@ -394,7 +394,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_GETFUNC(pad) = get; - GST_DEBUG (GST_CAT_PADS, "getfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "getfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (get)); } @@ -413,7 +413,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_EVENTFUNC(pad) = event; - GST_DEBUG (GST_CAT_PADS, "eventfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "eventfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (event)); } @@ -432,7 +432,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_GETREGIONFUNC(pad) = getregion; - GST_DEBUG (GST_CAT_PADS, "getregionfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "getregionfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (getregion)); } @@ -452,7 +452,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_CONNECTFUNC (pad) = connect; - GST_DEBUG (GST_CAT_PADS, "connectfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "connectfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (connect)); } @@ -471,7 +471,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_GETCAPSFUNC (pad) = getcaps; - GST_DEBUG (GST_CAT_PADS, "getcapsfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "getcapsfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (getcaps)); } /** @@ -489,7 +489,7 @@ g_return_if_fail (GST_IS_REAL_PAD (pad)); GST_RPAD_BUFFERPOOLFUNC (pad) = bufpool; - GST_DEBUG (GST_CAT_PADS, "bufferpoolfunc for %s:%s set to %s\n", + GST_DEBUG (GST_CAT_PADS, "bufferpoolfunc for %s:%s set to %s", GST_DEBUG_PAD_NAME (pad), GST_DEBUG_FUNCPTR_NAME (bufpool)); } @@ -497,11 +497,11 @@ gst_pad_push_func(GstPad *pad, GstBuffer *buf) { if (GST_RPAD_CHAINFUNC (GST_RPAD_PEER (pad)) != NULL) { - GST_DEBUG (GST_CAT_DATAFLOW, "calling chain function %s\n", + GST_DEBUG (GST_CAT_DATAFLOW, "calling chain function %s", GST_DEBUG_FUNCPTR_NAME (GST_RPAD_CHAINFUNC (GST_RPAD_PEER (pad)))); (GST_RPAD_CHAINFUNC (GST_RPAD_PEER (pad))) (pad, buf); } else { - GST_DEBUG (GST_CAT_DATAFLOW, "default pad_push handler in place, no chain function\n"); + GST_DEBUG (GST_CAT_DATAFLOW, "default pad_push handler in place, no chain function"); g_warning ("(internal error) default pad_push in place for pad %s:%s but it has no chain function", GST_DEBUG_PAD_NAME (pad)); } @@ -720,7 +720,7 @@ /* try to negotiate the pads, we don't need to clear the caps here */ if (!gst_pad_try_reconnect_filtered_func (realsrc, realsink, filtercaps, FALSE)) { - GST_DEBUG (GST_CAT_CAPS, "pads cannot connect\n"); + GST_DEBUG (GST_CAT_CAPS, "pads cannot connect"); GST_RPAD_PEER (realsrc) = NULL; GST_RPAD_PEER (realsink) = NULL; @@ -968,7 +968,7 @@ * negotiation */ if (parent && GST_STATE (parent) < GST_STATE_READY) { - GST_DEBUG (GST_CAT_CAPS, "parent %s of pad %s:%s is not ready\n", + GST_DEBUG (GST_CAT_CAPS, "parent %s of pad %s:%s is not ready", GST_ELEMENT_NAME (parent), GST_DEBUG_PAD_NAME (pad)); return GST_PAD_CONNECT_DELAYED; } @@ -1183,7 +1183,7 @@ GST_RPAD_APPFILTER (realsrc) = filtercaps; } } - GST_DEBUG (GST_CAT_CAPS, "setting filter for connection to:\n"); + GST_DEBUG (GST_CAT_CAPS, "setting filter for connection to:"); gst_caps_debug (intersection, "filter for connection"); /* both the app filter and the filter, while stored on both peer pads, are the @@ -1363,22 +1363,22 @@ realpad = GST_PAD_REALIZE (pad); - GST_DEBUG (GST_CAT_CAPS, "get pad caps of %s:%s (%p)\n", + GST_DEBUG (GST_CAT_CAPS, "get pad caps of %s:%s (%p)", GST_DEBUG_PAD_NAME (realpad), realpad); if (GST_PAD_CAPS (realpad)) { - GST_DEBUG (GST_CAT_CAPS, "using pad real caps\n"); + GST_DEBUG (GST_CAT_CAPS, "using pad real caps"); return GST_PAD_CAPS (realpad); } else if GST_RPAD_GETCAPSFUNC (realpad) { - GST_DEBUG (GST_CAT_CAPS, "using pad get function\n"); + GST_DEBUG (GST_CAT_CAPS, "using pad get function"); return GST_RPAD_GETCAPSFUNC (realpad) (GST_PAD_CAST (realpad), NULL); } else if (GST_PAD_PADTEMPLATE (realpad)) { - GST_DEBUG (GST_CAT_CAPS, "using pad template\n"); + GST_DEBUG (GST_CAT_CAPS, "using pad template"); return GST_PADTEMPLATE_CAPS (GST_PAD_PADTEMPLATE (realpad)); } - GST_DEBUG (GST_CAT_CAPS, "pad has no caps\n"); + GST_DEBUG (GST_CAT_CAPS, "pad has no caps"); return NULL; } @@ -1454,7 +1454,7 @@ } } else { - GST_DEBUG (GST_CAT_PADS, "could not check capabilities of pads (%s:%s) and (%s:%s) %p %p\n", + GST_DEBUG (GST_CAT_PADS, "could not check capabilities of pads (%s:%s) and (%s:%s) %p %p", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (sinkpad), GST_PAD_CAPS (srcpad), GST_PAD_CAPS (sinkpad)); return TRUE; @@ -1493,7 +1493,7 @@ g_return_val_if_fail (pad != NULL, NULL); g_return_val_if_fail (GST_IS_PAD (pad), NULL); - GST_DEBUG (GST_CAT_PROPERTIES, "get allowed caps of %s:%s\n", GST_DEBUG_PAD_NAME (pad)); + GST_DEBUG (GST_CAT_PROPERTIES, "get allowed caps of %s:%s", GST_DEBUG_PAD_NAME (pad)); return gst_caps_copy (GST_RPAD_FILTER (pad)); } @@ -1515,7 +1515,7 @@ g_return_val_if_fail (pad != NULL, FALSE); g_return_val_if_fail (GST_IS_PAD (pad), FALSE); - GST_DEBUG (GST_CAT_PROPERTIES, "set allowed caps of %s:%s\n", GST_DEBUG_PAD_NAME (pad)); + GST_DEBUG (GST_CAT_PROPERTIES, "set allowed caps of %s:%s", GST_DEBUG_PAD_NAME (pad)); peer = GST_RPAD_PEER (pad); if (peer) @@ -1549,11 +1549,11 @@ GST_DEBUG_ENTER ("(%s:%s)", GST_DEBUG_PAD_NAME (pad)); if (peer->bufferpoolfunc) { - GST_DEBUG (GST_CAT_PADS, "calling bufferpoolfunc &%s (@%p) of peer pad %s:%s\n", + GST_DEBUG (GST_CAT_PADS, "calling bufferpoolfunc &%s (@%p) of peer pad %s:%s", GST_DEBUG_FUNCPTR_NAME (peer->bufferpoolfunc), &peer->bufferpoolfunc, GST_DEBUG_PAD_NAME (((GstPad*) peer))); return (peer->bufferpoolfunc) (((GstPad*) peer)); } else { - GST_DEBUG (GST_CAT_PADS, "no bufferpoolfunc for peer pad %s:%s at %p\n", + GST_DEBUG (GST_CAT_PADS, "no bufferpoolfunc for peer pad %s:%s at %p", GST_DEBUG_PAD_NAME (((GstPad*) peer)), &peer->bufferpoolfunc); return NULL; } @@ -1568,10 +1568,10 @@ * It has to have a parent to be connected and a parent would hold a reference */ g_assert (GST_PAD_PEER (pad) == NULL); - GST_DEBUG (GST_CAT_REFCOUNTING, "dispose %s:%s\n", GST_DEBUG_PAD_NAME(pad)); + GST_DEBUG (GST_CAT_REFCOUNTING, "dispose %s:%s", GST_DEBUG_PAD_NAME(pad)); if (GST_PAD_PADTEMPLATE (pad)){ - GST_DEBUG (GST_CAT_REFCOUNTING, "unreffing padtemplate'%s'\n", GST_OBJECT_NAME (GST_PAD_PADTEMPLATE (pad))); + GST_DEBUG (GST_CAT_REFCOUNTING, "unreffing padtemplate'%s'", GST_OBJECT_NAME (GST_PAD_PADTEMPLATE (pad))); gst_object_unref (GST_OBJECT (GST_PAD_PADTEMPLATE (pad))); GST_PAD_PADTEMPLATE (pad) = NULL; } @@ -1586,7 +1586,7 @@ GstPad *ghostpad = GST_PAD (ghostpads->data); if (GST_IS_ELEMENT (GST_OBJECT_PARENT (ghostpad))){ - GST_DEBUG (GST_CAT_REFCOUNTING, "removing ghost pad from element '%s'\n", + GST_DEBUG (GST_CAT_REFCOUNTING, "removing ghost pad from element '%s'", GST_OBJECT_NAME (GST_OBJECT_PARENT (ghostpad))); gst_element_remove_ghost_pad (GST_ELEMENT (GST_OBJECT_PARENT (ghostpad)), GST_PAD (ghostpad)); @@ -1598,7 +1598,7 @@ } if (GST_IS_ELEMENT (GST_OBJECT_PARENT (pad))){ - GST_DEBUG (GST_CAT_REFCOUNTING, "removing pad from element '%s'\n", + GST_DEBUG (GST_CAT_REFCOUNTING, "removing pad from element '%s'", GST_OBJECT_NAME (GST_OBJECT (GST_ELEMENT (GST_OBJECT_PARENT (pad))))); gst_element_remove_pad (GST_ELEMENT (GST_OBJECT_PARENT (pad)), pad); @@ -1751,7 +1751,7 @@ else { if (peer->chainhandler) { if (buf) { - GST_DEBUG (GST_CAT_DATAFLOW, "calling chainhandler &%s of peer pad %s:%s\n", + GST_DEBUG (GST_CAT_DATAFLOW, "calling chainhandler &%s of peer pad %s:%s", GST_DEBUG_FUNCPTR_NAME (peer->chainhandler), GST_DEBUG_PAD_NAME (GST_PAD (peer))); (peer->chainhandler) (GST_PAD_CAST (peer), buf); return; @@ -1803,7 +1803,7 @@ if (peer->gethandler) { GstBuffer *buf; - GST_DEBUG (GST_CAT_DATAFLOW, "calling gethandler %s of peer pad %s:%s\n", + GST_DEBUG (GST_CAT_DATAFLOW, "calling gethandler %s of peer pad %s:%s", GST_DEBUG_FUNCPTR_NAME (peer->gethandler), GST_DEBUG_PAD_NAME (peer)); buf = (peer->gethandler) (GST_PAD_CAST (peer)); @@ -1857,11 +1857,11 @@ GST_DEBUG_ENTER("(%s:%s,%d,%lld,%lld)",GST_DEBUG_PAD_NAME(pad),type,offset,len); if (peer->pullregionfunc) { - GST_DEBUG (GST_CAT_DATAFLOW, "calling pullregionfunc &%s of peer pad %s:%s\n", + GST_DEBUG (GST_CAT_DATAFLOW, "calling pullregionfunc &%s of peer pad %s:%s", GST_DEBUG_FUNCPTR_NAME (peer->pullregionfunc), GST_DEBUG_PAD_NAME(GST_PAD_CAST (peer))); result = (peer->pullregionfunc) (GST_PAD_CAST (peer), type, offset, len); } else { - GST_DEBUG (GST_CAT_DATAFLOW,"no pullregionfunc\n"); + GST_DEBUG (GST_CAT_DATAFLOW,"no pullregionfunc"); result = NULL; break; } @@ -2122,7 +2122,7 @@ xmlNodePtr subtree; guchar *presence; - GST_DEBUG (GST_CAT_XML,"saving padtemplate %s\n", templ->name_template); + GST_DEBUG (GST_CAT_XML,"saving padtemplate %s", templ->name_template); xmlNewChild(parent,NULL,"nametemplate", templ->name_template); xmlNewChild(parent,NULL,"direction", (templ->direction == GST_PAD_SINK? "sink":"src")); @@ -2322,7 +2322,7 @@ /* FIXME need to ref the real pad here... ? */ - GST_DEBUG (GST_CAT_PADS, "created ghost pad \"%s\"\n", name); + GST_DEBUG (GST_CAT_PADS, "created ghost pad \"%s\"", name); return GST_PAD (ghostpad); } @@ -2397,17 +2397,17 @@ if (GST_EVENT_SRC (event) == NULL) GST_EVENT_SRC (event) = gst_object_ref (GST_OBJECT (pad)); - GST_DEBUG (GST_CAT_EVENT, "have event %d on pad %s:%s\n", + GST_DEBUG (GST_CAT_EVENT, "have event %d on pad %s:%s", GST_EVENT_TYPE (event), GST_DEBUG_PAD_NAME (pad)); if (GST_RPAD_EVENTFUNC (pad)) handled = GST_RPAD_EVENTFUNC (pad) (pad, event); else { - GST_DEBUG(GST_CAT_EVENT, "there's no event function for pad %s:%s\n", GST_DEBUG_PAD_NAME (pad)); + GST_DEBUG(GST_CAT_EVENT, "there's no event function for pad %s:%s", GST_DEBUG_PAD_NAME (pad)); } if (!handled) { - GST_DEBUG(GST_CAT_EVENT, "proceeding with default event behavior here\n"); + GST_DEBUG(GST_CAT_EVENT, "proceeding with default event behavior here"); gst_pad_event_default (pad, event); handled = TRUE; } Index: gstparse.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstparse.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- gstparse.c 19 Mar 2002 04:10:10 -0000 1.43 +++ gstparse.c 24 Mar 2002 22:07:06 -0000 1.44 @@ -151,10 +151,10 @@ *ptr = '\0'; /* it was a '.' before */ - GST_DEBUG (0, "have pad for element %s\n", element_name); + GST_DEBUG (0, "have pad for element %s", element_name); new = gst_bin_get_by_name_recurse_up (parent, element_name); if (!new) { - GST_DEBUG (0, "element %s does not exist! trying to continue\n", element_name); + GST_DEBUG (0, "element %s does not exist! trying to continue", element_name); } else { previous = new; srcpadname = ptr + 1; @@ -162,7 +162,7 @@ } } - GST_DEBUG (0, "have srcpad %s, sinkpad %s\n", srcpadname, sinkpadname); + GST_DEBUG (0, "have srcpad %s, sinkpad %s", srcpadname, sinkpadname); g_slist_free (srcpads); srcpads = NULL; @@ -193,9 +193,9 @@ numsrcpads++; } if (!temppad) { - GST_DEBUG (0, "NO SUCH pad %s in element %s\n", tempname, GST_ELEMENT_NAME (previous)); + GST_DEBUG (0, "NO SUCH pad %s in element %s", tempname, GST_ELEMENT_NAME (previous)); } else { - GST_DEBUG (0, "have src pad %s:%s\n", GST_DEBUG_PAD_NAME (temppad)); + GST_DEBUG (0, "have src pad %s:%s", GST_DEBUG_PAD_NAME (temppad)); } /* if there is no more commas in srcpadname then we're done */ @@ -205,14 +205,14 @@ } } else { /* check through the list to find the first src pad */ - GST_DEBUG (0, "CHECKING element %s for pad named %s\n", GST_ELEMENT_NAME (previous), + GST_DEBUG (0, "CHECKING element %s for pad named %s", GST_ELEMENT_NAME (previous), srcpadname); pads = gst_element_get_pad_list (previous); while (pads) { temppad = GST_PARSE_LISTPAD (pads); - GST_DEBUG (0, "have pad %s:%s\n", GST_DEBUG_PAD_NAME (temppad)); + GST_DEBUG (0, "have pad %s:%s", GST_DEBUG_PAD_NAME (temppad)); if (GST_IS_GHOST_PAD (temppad)) - GST_DEBUG (0, "it's a ghost pad\n"); + GST_DEBUG (0, "it's a ghost pad"); if (gst_pad_get_direction (temppad) == GST_PAD_SRC) { srcpads = g_slist_append (srcpads, temppad); numsrcpads++; @@ -221,9 +221,9 @@ pads = g_list_next (pads); } if (!srcpads) - GST_DEBUG (0, "error, can't find a src pad!!!\n"); + GST_DEBUG (0, "error, can't find a src pad!!!"); else - GST_DEBUG (0, "have src pad %s:%s\n", GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (srcpads))); + GST_DEBUG (0, "have src pad %s:%s", GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (srcpads))); } } else if (strchr (arg, '=')) { gchar *propname; @@ -239,7 +239,7 @@ propval = pos + 1; /* use g_object_set in the future when gst_util_{set|get} go away */ - GST_DEBUG (0, "attempting to set property '%s' to '%s' on element '%s'\n", + GST_DEBUG (0, "attempting to set property '%s' to '%s' on element '%s'", propname, propval, GST_ELEMENT_NAME (previous)); gst_util_set_object_arg (G_OBJECT (previous), propname, propval); g_free (propname); @@ -287,7 +287,7 @@ fprintf (stderr, "Couldn't create a bin!\n"); return GST_PARSE_ERROR_CREATING_ELEMENT; } - GST_DEBUG (0, "CREATED bin %s\n", GST_ELEMENT_NAME (element)); + GST_DEBUG (0, "CREATED bin %s", GST_ELEMENT_NAME (element)); } else if (arg[0] == '{') { /* create a thread and add it to the current parent */ priv->threadcount++; @@ -296,7 +296,7 @@ fprintf (stderr, "Couldn't create a thread!\n"); return GST_PARSE_ERROR_CREATING_ELEMENT; } - GST_DEBUG (0, "CREATED thread %s\n", GST_ELEMENT_NAME (element)); + GST_DEBUG (0, "CREATED thread %s", GST_ELEMENT_NAME (element)); } else { fprintf (stderr, "Illegal argument: %s\n", arg); return GST_PARSE_ERROR_CREATING_ELEMENT; @@ -328,7 +328,7 @@ return GST_PARSE_ERROR_NOSUCH_ELEMENT; } - GST_DEBUG (0, "CREATED element %s\n", GST_ELEMENT_NAME (element)); + GST_DEBUG (0, "CREATED element %s", GST_ELEMENT_NAME (element)); gst_bin_add (GST_BIN (parent), element); } @@ -362,9 +362,9 @@ numsinkpads++; } if (!temppad) { - GST_DEBUG (0, "NO SUCH pad %s in element %s\n", tempname, GST_ELEMENT_NAME (element)); + GST_DEBUG (0, "NO SUCH pad %s in element %s", tempname, GST_ELEMENT_NAME (element)); } else { - GST_DEBUG (0, "have sink pad %s:%s\n", GST_DEBUG_PAD_NAME (temppad)); + GST_DEBUG (0, "have sink pad %s:%s", GST_DEBUG_PAD_NAME (temppad)); } /* if there is no more commas in sinkpadname then we're done */ @@ -387,9 +387,9 @@ } if (!sinkpads) - GST_DEBUG (0, "can't find a sink pad for element\n"); + GST_DEBUG (0, "can't find a sink pad for element"); else - GST_DEBUG (0, "have sink pad %s:%s\n", GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (sinkpads))); + GST_DEBUG (0, "have sink pad %s:%s", GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (sinkpads))); if (!srcpads && sinkpads && previous && srcpadname) { dyn_connect *connect = g_malloc (sizeof (dyn_connect)); @@ -398,14 +398,14 @@ connect->target = GST_PARSE_LISTPAD (sinkpads); connect->pipeline = GST_ELEMENT (parent); - GST_DEBUG (0, "SETTING UP dynamic connection %s:%s and %s:%s\n", + GST_DEBUG (0, "SETTING UP dynamic connection %s:%s and %s:%s", gst_element_get_name (previous), srcpadname, GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (sinkpads))); g_signal_connect (G_OBJECT (previous), "new_pad", G_CALLBACK (dynamic_connect), connect); } else { for (j = 0; (j < numsrcpads) && (j < numsinkpads); j++) { - GST_DEBUG (0, "CONNECTING %s:%s and %s:%s\n", + GST_DEBUG (0, "CONNECTING %s:%s and %s:%s", GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (g_slist_nth (srcpads, j))), GST_DEBUG_PAD_NAME (GST_PARSE_LISTPAD (g_slist_nth (sinkpads, j)))); if (!gst_pad_connect (GST_PARSE_LISTPAD (g_slist_nth (srcpads, j)), @@ -437,7 +437,7 @@ else if (gst_pad_get_direction (temppad) == GST_PAD_SINK) { gst_element_add_ghost_pad (GST_ELEMENT (parent), temppad, g_strdup_printf ("%s-ghost", GST_PAD_NAME (temppad))); - GST_DEBUG (0, "GHOSTED %s:%s to %s as %s-ghost\n", + GST_DEBUG (0, "GHOSTED %s:%s to %s as %s-ghost", GST_DEBUG_PAD_NAME (temppad), GST_ELEMENT_NAME (GST_ELEMENT (parent)), GST_PAD_NAME (temppad)); } @@ -463,7 +463,7 @@ else if (gst_pad_get_direction (temppad) == GST_PAD_SRC) { gst_element_add_ghost_pad (GST_ELEMENT (parent), temppad, g_strdup_printf ("%s-ghost", GST_PAD_NAME (temppad))); - GST_DEBUG (0, "GHOSTED %s:%s to %s as %s-ghost\n", + GST_DEBUG (0, "GHOSTED %s:%s to %s as %s-ghost", GST_DEBUG_PAD_NAME (temppad), GST_ELEMENT_NAME (parent), GST_PAD_NAME (temppad)); } } @@ -589,7 +589,7 @@ /* now allocate the new argv array, with room for NULL termination */ argvn = g_new0 (char *, newargc + 1); - GST_DEBUG (0, "got %d args\n", newargc); + GST_DEBUG (0, "got %d args", newargc); /* reverse the list and put the strings in the new array */ i = newargc; @@ -601,7 +601,7 @@ /* print them out */ while (argvn[i++]) { - GST_DEBUG (0, "arg %d is: %s\n", i-1, argvn[i-1]); + GST_DEBUG (0, "arg %d is: %s", i-1, argvn[i-1]); } /* do it! */ Index: gstpluginfeature.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstpluginfeature.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- gstpluginfeature.c 14 Dec 2001 22:59:21 -0000 1.5 +++ gstpluginfeature.c 24 Mar 2002 22:07:06 -0000 1.6 @@ -125,7 +125,7 @@ GstPlugin *plugin = (GstPlugin *) (feature->manager); if (plugin && !gst_plugin_is_loaded (plugin)) { - GST_DEBUG (GST_CAT_PLUGIN_LOADING, "loading plugin %s for feature\n", plugin->name); + GST_DEBUG (GST_CAT_PLUGIN_LOADING, "loading plugin %s for feature", plugin->name); return gst_plugin_load_plugin (plugin); } Index: gstprops.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstprops.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- gstprops.c 5 Mar 2002 08:13:55 -0000 1.51 +++ gstprops.c 24 Mar 2002 22:07:06 -0000 1.52 @@ -58,30 +58,30 @@ switch (entry->propstype) { case GST_PROPS_INT_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: int %d\n", name, entry->data.int_data); + GST_DEBUG (GST_CAT_PROPERTIES, "%s: int %d", name, entry->data.int_data); break; case GST_PROPS_FLOAT_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: float %f\n", name, entry->data.float_data); + GST_DEBUG (GST_CAT_PROPERTIES, "%s: float %f", name, entry->data.float_data); break; case GST_PROPS_FOURCC_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: fourcc %4.4s\n", name, (gchar*)&entry->data.fourcc_data); + GST_DEBUG (GST_CAT_PROPERTIES, "%s: fourcc %4.4s", name, (gchar*)&entry->data.fourcc_data); break; case GST_PROPS_BOOL_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: bool %d\n", name, entry->data.bool_data); + GST_DEBUG (GST_CAT_PROPERTIES, "%s: bool %d", name, entry->data.bool_data); break; case GST_PROPS_STRING_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: string %s\n", name, entry->data.string_data.string); + GST_DEBUG (GST_CAT_PROPERTIES, "%s: string %s", name, entry->data.string_data.string); break; case GST_PROPS_INT_RANGE_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: int range %d-%d\n", name, entry->data.int_range_data.min, + GST_DEBUG (GST_CAT_PROPERTIES, "%s: int range %d-%d", name, entry->data.int_range_data.min, entry->data.int_range_data.max); break; case GST_PROPS_FLOAT_RANGE_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "%s: float range %f-%f\n", name, entry->data.float_range_data.min, + GST_DEBUG (GST_CAT_PROPERTIES, "%s: float range %f-%f", name, entry->data.float_range_data.min, entry->data.float_range_data.max); break; case GST_PROPS_LIST_ID: - GST_DEBUG (GST_CAT_PROPERTIES, "[list]\n"); + GST_DEBUG (GST_CAT_PROPERTIES, "[list]"); { GList *entries = entry->data.list_data.entries; @@ -884,7 +884,7 @@ static gboolean gst_props_entry_check_compatibility (GstPropsEntry *entry1, GstPropsEntry *entry2) { - GST_DEBUG (GST_CAT_PROPERTIES,"compare: %s %s\n", g_quark_to_string (entry1->propid), + GST_DEBUG (GST_CAT_PROPERTIES,"compare: %s %s", g_quark_to_string (entry1->propid), g_quark_to_string (entry2->propid)); if (entry2->propstype == GST_PROPS_LIST_ID && entry1->propstype != GST_PROPS_LIST_ID) { @@ -931,7 +931,7 @@ switch (entry2->propstype) { /* b <---> a */ case GST_PROPS_FOURCC_ID: - GST_DEBUG(GST_CAT_PROPERTIES,"\"%4.4s\" <--> \"%4.4s\" ?\n", + GST_DEBUG(GST_CAT_PROPERTIES,"\"%4.4s\" <--> \"%4.4s\" ?", (char*) &entry2->data.fourcc_data, (char*) &entry1->data.fourcc_data); return (entry2->data.fourcc_data == entry1->data.fourcc_data); default: @@ -942,13 +942,13 @@ switch (entry2->propstype) { /* b <---> a - d */ case GST_PROPS_INT_RANGE_ID: - GST_DEBUG(GST_CAT_PROPERTIES,"%d <= %d <= %d ?\n",entry2->data.int_range_data.min, + GST_DEBUG(GST_CAT_PROPERTIES,"%d <= %d <= %d ?",entry2->data.int_range_data.min, entry1->data.int_data,entry2->data.int_range_data.max); return (entry2->data.int_range_data.min <= entry1->data.int_data && entry2->data.int_range_data.max >= entry1->data.int_data); /* b <---> a */ case GST_PROPS_INT_ID: - GST_DEBUG(GST_CAT_PROPERTIES,"%d == %d ?\n",entry1->data.int_data,entry2->data.int_data); + GST_DEBUG(GST_CAT_PROPERTIES,"%d == %d ?",entry1->data.int_data,entry2->data.int_data); return (entry2->data.int_data == entry1->data.int_data); default: break; @@ -979,7 +979,7 @@ switch (entry2->propstype) { /* t <---> t */ case GST_PROPS_STRING_ID: - GST_DEBUG(GST_CAT_PROPERTIES,"\"%s\" <--> \"%s\" ?\n", + GST_DEBUG(GST_CAT_PROPERTIES,"\"%s\" <--> \"%s\" ?", entry2->data.string_data.string, entry1->data.string_data.string); return (!strcmp (entry2->data.string_data.string, entry1->data.string_data.string)); default: @@ -1038,7 +1038,7 @@ if (!gst_props_entry_check_compatibility (entry1, entry2)) { compatible = FALSE; - GST_DEBUG (GST_CAT_PROPERTIES, "%s are not compatible: \n", + GST_DEBUG (GST_CAT_PROPERTIES, "%s are not compatible: ", g_quark_to_string (entry1->propid)); } @@ -1280,7 +1280,7 @@ while (entry1->propid < entry2->propid) { GstPropsEntry *toadd; - GST_DEBUG (GST_CAT_PROPERTIES,"source is more specific in \"%s\"\n", g_quark_to_string (entry1->propid)); + GST_DEBUG (GST_CAT_PROPERTIES,"source is more specific in \"%s\"", g_quark_to_string (entry1->propid)); toadd = gst_props_entry_copy (entry1); if (GST_PROPS_ENTRY_IS_VARIABLE (toadd)) Index: gstscheduler.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstscheduler.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- gstscheduler.c 22 Feb 2002 23:12:05 -0000 1.49 +++ gstscheduler.c 24 Mar 2002 22:07:06 -0000 1.50 @@ -484,7 +484,7 @@ g_return_val_if_fail(name != NULL, NULL); - GST_DEBUG (0,"gstscheduler: find \"%s\"\n", name); + GST_DEBUG (0,"gstscheduler: find \"%s\"", name); walk = _gst_schedulerfactories; while (walk) { Index: gstthread.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstthread.c,v retrieving revision 1.69 retrieving revision 1.70 diff -u -d -r1.69 -r1.70 --- gstthread.c 17 Mar 2002 00:41:46 -0000 1.69 +++ gstthread.c 24 Mar 2002 22:07:06 -0000 1.70 @@ -136,7 +136,7 @@ const gchar *schedname; GstScheduler *scheduler; - GST_DEBUG (GST_CAT_THREAD, "initializing thread\n"); + GST_DEBUG (GST_CAT_THREAD, "initializing thread"); /* we're a manager by default */ GST_FLAG_SET (thread, GST_BIN_FLAG_MANAGER); @@ -162,7 +162,7 @@ { GstThread *thread = GST_THREAD (object); - GST_DEBUG (GST_CAT_REFCOUNTING, "dispose\n"); + GST_DEBUG (GST_CAT_REFCOUNTING, "dispose"); g_mutex_free (thread->lock); g_cond_free (thread->cond); @@ -360,13 +360,13 @@ continue; /* deal with case where there's no peer */ if (!GST_FLAG_IS_SET (peerelement, GST_ELEMENT_DECOUPLED)) { - GST_DEBUG (GST_CAT_THREAD, "peer element isn't DECOUPLED\n"); + GST_DEBUG (GST_CAT_THREAD, "peer element isn't DECOUPLED"); continue; } /* FIXME this needs to go away eventually */ if (!GST_IS_QUEUE (peerelement)) { - GST_DEBUG (GST_CAT_THREAD, "peer element isn't a Queue\n"); + GST_DEBUG (GST_CAT_THREAD, "peer element isn't a Queue"); continue; } @@ -593,7 +593,7 @@ gst_thread_restore_thyself (GstObject *object, xmlNodePtr self) { - GST_DEBUG (GST_CAT_THREAD,"gstthread: restore\n"); + GST_DEBUG (GST_CAT_THREAD,"gstthread: restore"); if (GST_OBJECT_CLASS (parent_class)->restore_thyself) GST_OBJECT_CLASS (parent_class)->restore_thyself (object, self); Index: gsttimecache.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gsttimecache.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- gsttimecache.c 14 Dec 2001 22:59:21 -0000 1.4 +++ gsttimecache.c 24 Mar 2002 22:07:06 -0000 1.5 @@ -72,7 +72,7 @@ tcgroup->minlocation = 0LL; tcgroup->maxlocation = 0LL; - GST_DEBUG(0, "created new timecache group %d\n",groupnum); + GST_DEBUG(0, "created new timecache group %d",groupnum); return tcgroup; } @@ -83,7 +83,7 @@ tc->curgroup = gst_timecache_group_new(0); tc->maxgroup = 0; tc->groups = g_list_prepend(NULL, tc->curgroup); - GST_DEBUG(0, "created new timecache\n"); + GST_DEBUG(0, "created new timecache"); } /** @@ -131,7 +131,7 @@ { tc->curgroup = gst_timecache_group_new(++tc->maxgroup); tc->groups = g_list_append(tc->groups,tc->curgroup); - GST_DEBUG(0, "created new group %d in timecache\n",tc->maxgroup); + GST_DEBUG(0, "created new group %d in timecache",tc->maxgroup); return tc->maxgroup; } @@ -162,13 +162,13 @@ list = g_list_next(list); if (tcgroup->groupnum == groupnum) { tc->curgroup = tcgroup; - GST_DEBUG(0, "switched to timecache group %d\n", tcgroup->groupnum); + GST_DEBUG(0, "switched to timecache group %d", tcgroup->groupnum); return TRUE; } } /* couldn't find the group in question */ - GST_DEBUG(0, "couldn't find timecache group %d\n",groupnum); + GST_DEBUG(0, "couldn't find timecache group %d",groupnum); return FALSE; } @@ -225,7 +225,7 @@ if (tc->curgroup->minlocation > location) tc->curgroup->minlocation = location; if (tc->curgroup->maxlocation < location) tc->curgroup->maxlocation = location; - GST_DEBUG(0, "added entry to timecache group %d\n",tc->curgroup->groupnum); + GST_DEBUG(0, "added entry to timecache group %d",tc->curgroup->groupnum); } static gint @@ -255,7 +255,7 @@ /* first check to see if it's in the current group */ if ((tc->curgroup->minlocation <= location) && (location <= tc->curgroup->maxlocation)) { - GST_DEBUG(0, "location %Ld is in group %d\n",location,tc->curgroup->groupnum); + GST_DEBUG(0, "location %Ld is in group %d",location,tc->curgroup->groupnum); list = g_list_find_custom(tc->curgroup->entries,&location,(GCompareFunc)_gst_timecache_find_location); if (list) entry = (GstTimeCacheEntry *)(list->data); if (entry) *timestamp = entry->timestamp; @@ -296,7 +296,7 @@ /* first check to see if it's in the current group */ if ((tc->curgroup->mintimestamp <= timestamp) && (timestamp <= tc->curgroup->maxtimestamp)) { - GST_DEBUG(0, "timestamp %Ld may be in group %d\n",timestamp,tc->curgroup->groupnum); + GST_DEBUG(0, "timestamp %Ld may be in group %d",timestamp,tc->curgroup->groupnum); entries = g_list_find_custom(tc->curgroup->entries,×tamp,(GCompareFunc)_gst_timecache_find_timestamp); if (entries) entry = (GstTimeCacheEntry *)(entries->data); if (entry) { @@ -311,7 +311,7 ... [truncated message content] |