From: <fe...@ke...> - 2007-08-28 11:07:53
|
CVS Root: /cvs/gstreamer Module: gst-openmax Changes by: felipec Date: Tue Aug 28 2007 11:07:55 UTC Log message: Improve logging. Modified files: omx : gstomx_base_filter.c gstomx_base_sink.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_base_filter.c.diff?r1=1.1&r2=1.2 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_base_sink.c.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: gstomx_base_filter.c =================================================================== RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_base_filter.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gstomx_base_filter.c 10 Jul 2007 15:26:01 -0000 1.1 +++ gstomx_base_filter.c 28 Aug 2007 11:07:40 -0000 1.2 @@ -73,9 +73,11 @@ self = GST_OMX_BASE_FILTER (element); - GST_DEBUG_OBJECT (self, "changing state %s - %s", - gst_element_state_get_name (GST_STATE_TRANSITION_CURRENT (transition)), - gst_element_state_get_name (GST_STATE_TRANSITION_NEXT (transition))); + GST_LOG_OBJECT (self, "begin"); + + GST_INFO_OBJECT (self, "changing state %s - %s", + gst_element_state_get_name (GST_STATE_TRANSITION_CURRENT (transition)), + gst_element_state_get_name (GST_STATE_TRANSITION_NEXT (transition))); switch (transition) { @@ -122,6 +124,8 @@ break; } + GST_LOG_OBJECT (self, "end"); return ret; } @@ -163,7 +167,7 @@ gomx = (GOmxCore *) cb_data; self = GST_OMX_BASE_FILTER (gomx->client_data); - GST_LOG_OBJECT (self, "start"); out_port = self->out_port; @@ -177,7 +181,7 @@ if (!omx_buffer) { - GST_WARNING_OBJECT (self, "Bad buffer"); + GST_WARNING_OBJECT (self, "null buffer"); continue; } @@ -292,10 +296,10 @@ gomx = self->gomx; GST_LOG_OBJECT (self, "gst_buffer: size=%lu", GST_BUFFER_SIZE (buf)); - GST_DEBUG_OBJECT (self, "state: %d", gomx->omx_state); + GST_LOG_OBJECT (self, "state: %d", gomx->omx_state); if (gomx->omx_state == OMX_StateLoaded) @@ -336,6 +340,7 @@ OMX_BUFFERHEADERTYPE *omx_buffer; + GST_LOG_OBJECT (self, "request_buffer"); omx_buffer = g_omx_port_request_buffer (in_port); if (omx_buffer) @@ -364,7 +369,7 @@ } else { - GST_WARNING_OBJECT (self, "bad buffer"); + GST_WARNING_OBJECT (self, "null buffer"); /* ret = GST_FLOW_ERROR; */ @@ -388,7 +393,7 @@ self = GST_OMX_BASE_FILTER (GST_OBJECT_PARENT (pad)); - GST_DEBUG_OBJECT (self, "start"); GST_DEBUG_OBJECT (self, "event: %s", GST_EVENT_TYPE_NAME (event)); @@ -408,7 +413,7 @@ - GST_DEBUG_OBJECT (self, "stop"); return gst_pad_event_default (pad, event); @@ -424,7 +429,7 @@ self = GST_OMX_BASE_FILTER (instance); /* GOmx */ @@ -446,6 +451,8 @@ gst_element_add_pad (GST_ELEMENT (self), self->sinkpad); gst_element_add_pad (GST_ELEMENT (self), self->srcpad); GType Index: gstomx_base_sink.c RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_base_sink.c,v --- gstomx_base_sink.c 10 Jul 2007 15:28:48 -0000 1.1 +++ gstomx_base_sink.c 28 Aug 2007 11:07:40 -0000 1.2 @@ -56,13 +56,13 @@ self = GST_OMX_BASE_SINK (gst_base); - GST_DEBUG_OBJECT (self, "begin"); + GST_LOG_OBJECT (self, "begin"); g_omx_core_init (self->gomx, self->omx_component); if (self->gomx->omx_error) return GST_STATE_CHANGE_FAILURE; - GST_DEBUG_OBJECT (self, "end"); + GST_LOG_OBJECT (self, "end"); return true; @@ -74,7 +74,7 @@ g_omx_core_finish (self->gomx); @@ -82,7 +82,7 @@ - GST_DEBUG_OBJECT (self, "end"); @@ -115,7 +115,7 @@ GST_LOG_OBJECT (self, "begin"); @@ -172,7 +172,7 @@ @@ -196,7 +196,7 @@ self = GST_OMX_BASE_SINK (gst_base); - GST_DEBUG_OBJECT (self, "begin"); @@ -214,7 +214,7 @@ return true; @@ -253,7 +253,7 @@ self = GST_OMX_BASE_SINK (instance); @@ -262,7 +262,7 @@ gomx->client_data = self; |