From e9629e37b7e294729412e3f07881ec92063fe722 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Tue, 8 Nov 2011 08:22:56 +0100 Subject: [PATCH] video: log important details and fix format strings If we complain about wrong parameters passed, also log the actual value. --- gst-libs/gst/video/video.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index 786e2b0..247ed6f 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -864,7 +864,8 @@ gst_video_info_from_caps (GstVideoInfo * info, const GstCaps * caps) /* ERROR */ wrong_name: { - GST_ERROR ("wrong name, expected video/x-raw"); + GST_ERROR ("wrong name '%s', expected video/x-raw", + gst_structure_get_name (structure)); return FALSE; } no_format: @@ -874,7 +875,7 @@ no_format: } unknown_format: { - GST_ERROR ("unknown format given"); + GST_ERROR ("unknown format '%s' given", s); return FALSE; } no_width: @@ -1009,7 +1010,7 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info, /* ERRORS */ no_metadata: { - GST_ERROR ("no GstVideoMeta for id", id); + GST_ERROR ("no GstVideoMeta for id %d", id); return FALSE; } invalid_size: -- 2.7.4