diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-09-11 22:15:01 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-09-11 22:19:23 +0300 |
commit | 1a945a32ccae14b2828cacdd5d11560039df5d74 (patch) | |
tree | fb1302831400e405be6b8062259fc0b47a7db635 /sys/v4l2/gstv4l2.c | |
parent | 0c50816aaaa27f30a368ca21260b1766e2e1bf4a (diff) |
v4l2: log buffer copies on queue underrun in perf category
v4l2src has a slow path where it does buffer-copies when it runs out of queued
buffers. Log this to performance category to help monitoring it.
Diffstat (limited to 'sys/v4l2/gstv4l2.c')
-rw-r--r-- | sys/v4l2/gstv4l2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c index 409526cb9..99287b311 100644 --- a/sys/v4l2/gstv4l2.c +++ b/sys/v4l2/gstv4l2.c @@ -38,11 +38,13 @@ /* used in v4l2_calls.c and v4l2src_calls.c */ GST_DEBUG_CATEGORY (v4l2_debug); +GST_DEBUG_CATEGORY (GST_CAT_PERFORMANCE); static gboolean plugin_init (GstPlugin * plugin) { GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls"); + GST_DEBUG_CATEGORY_GET (GST_CAT_PERFORMANCE, "GST_PERFORMANCE"); if (!gst_element_register (plugin, "v4l2src", GST_RANK_PRIMARY, GST_TYPE_V4L2SRC) || |