felipec gst-openmax: gst-openmax/omx/

[email protected]
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-openmax
Changes by:     felipec
Date:           Thu Nov 20 2008  17:03:07 UTC

Log message:
Improve debug logging for gstomx util.

Modified files:
    omx             : gstomx.c gstomx.h gstomx_util.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx.c.diff?r1=1.37&r2=1.38
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx.h.diff?r1=1.9&r2=1.10
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_util.c.diff?r1=1.45&r2=1.46

====Begin Diffs====
Index: gstomx.c
===================================================================
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- gstomx.c	20 Nov 2008 16:16:54 -0000	1.37
+++ gstomx.c	20 Nov 2008 17:02:52 -0000	1.38
@@ -62,7 +62,8 @@
 static gboolean
 plugin_init (GstPlugin *plugin)
 {
-    GST_DEBUG_CATEGORY_INIT (gstomx_debug, "omx", 0, "OpenMAX");
+    GST_DEBUG_CATEGORY_INIT (gstomx_debug, "omx", 0, "gst-openmax");
+    GST_DEBUG_CATEGORY_INIT (gstomx_util_debug, "omx_util", 0, "gst-openmax utility");
 
     g_omx_init ();
Index: gstomx.h
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gstomx.h	15 Aug 2008 14:42:27 -0000	1.9
+++ gstomx.h	20 Nov 2008 17:02:52 -0000	1.10
@@ -29,6 +29,7 @@
 #define DEFAULT_LIBRARY_NAME "libomxil-bellagio.so.0"
 GST_DEBUG_CATEGORY_EXTERN (gstomx_debug);
+GST_DEBUG_CATEGORY_EXTERN (gstomx_util_debug);
 #define GST_CAT_DEFAULT gstomx_debug
 G_END_DECLS
Index: gstomx_util.c
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_util.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- gstomx_util.c	20 Nov 2008 17:01:12 -0000	1.45
+++ gstomx_util.c	20 Nov 2008 17:02:52 -0000	1.46
@@ -23,6 +23,13 @@
 #include "gstomx_util.h"
 #include <dlfcn.h>
+#include "gstomx.h"
+
+GST_DEBUG_CATEGORY (gstomx_util_debug);
+#undef GST_CAT_DEFAULT
+#define GST_CAT_DEFAULT gstomx_util_debug
 /* #define USE_ALLOCATE_BUFFER */
 /*
@@ -850,6 +857,7 @@
     core = (GOmxCore*) app_data;
     port = g_omx_core_get_port (core, omx_buffer->nInputPortIndex);
+    GST_LOG ("omx_buffer=%p", omx_buffer);
     got_buffer (core, port, omx_buffer);
     return OMX_ErrorNone;
@@ -866,6 +874,7 @@
     core = (GOmxCore *) app_data;
     port = g_omx_core_get_port (core, omx_buffer->nOutputPortIndex);

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.