mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 22:58:16 +00:00
v4l2: Directly use GST_PTR_FORMAT for printing caps with the LOG_CAPS macro
This commit is contained in:
parent
d65d542e9d
commit
198604c108
1 changed files with 1 additions and 9 deletions
|
@ -140,14 +140,6 @@ gboolean gst_v4l2_set_attribute (GstV4l2Object *v4l2object,
|
||||||
gboolean gst_v4l2_get_capabilities (GstV4l2Object * v4l2object);
|
gboolean gst_v4l2_get_capabilities (GstV4l2Object * v4l2object);
|
||||||
|
|
||||||
|
|
||||||
#define LOG_CAPS(obj, caps) G_STMT_START { \
|
#define LOG_CAPS(obj, caps) GST_DEBUG_OBJECT (obj, "%s: %" GST_PTR_FORMAT, #caps, caps)
|
||||||
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
|
|
||||||
|
|
||||||
#endif /* __V4L2_CALLS_H__ */
|
#endif /* __V4L2_CALLS_H__ */
|
||||||
|
|
Loading…
Reference in a new issue