diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-04 14:44:36 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-04 14:45:31 +0200 |
commit | 198604c108f7f0561ebf1e6fca7c2825a5011397 (patch) | |
tree | a9c9ec77101dfe81b8bd5a723871393ccbc64dd4 /sys/v4l2/v4l2_calls.h | |
parent | d65d542e9db6c446dcbc6dc87b8719eb27deaace (diff) |
v4l2: Directly use GST_PTR_FORMAT for printing caps with the LOG_CAPS macro
Diffstat (limited to 'sys/v4l2/v4l2_calls.h')
-rw-r--r-- | sys/v4l2/v4l2_calls.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/v4l2/v4l2_calls.h b/sys/v4l2/v4l2_calls.h index e862ac9f5..c5c1808a4 100644 --- a/sys/v4l2/v4l2_calls.h +++ b/sys/v4l2/v4l2_calls.h @@ -140,14 +140,6 @@ gboolean gst_v4l2_set_attribute (GstV4l2Object *v4l2object, gboolean gst_v4l2_get_capabilities (GstV4l2Object * v4l2object); -#define LOG_CAPS(obj, caps) G_STMT_START { \ - if (caps) { \ - gchar *capstr = gst_caps_to_string (caps); \ - GST_DEBUG_OBJECT (obj, "%s: %s", #caps, capstr); \ - g_free (capstr); \ - } else { \ - GST_DEBUG_OBJECT (obj, "null"); \ - } \ - } G_STMT_END +#define LOG_CAPS(obj, caps) GST_DEBUG_OBJECT (obj, "%s: %" GST_PTR_FORMAT, #caps, caps) #endif /* __V4L2_CALLS_H__ */ |