winks: fix debug message format issues

And print last bits of GUID properly instead
of printing nonsense.

https://bugzilla.gnome.org/show_bug.cgi?id=733055
This commit is contained in:
Tim-Philipp Müller 2014-11-24 13:25:55 +00:00
parent 857456b7ba
commit 99a17503a4
2 changed files with 7 additions and 7 deletions

View file

@ -627,8 +627,7 @@ gst_ks_video_device_create_pin (GstKsVideoDevice * self,
if (ks_object_get_property (pin_handle, KSPROPSETID_Stream,
KSPROPERTY_STREAM_MASTERCLOCK, (gpointer *) & cur_clock_handle,
&cur_clock_handle_size, NULL)) {
GST_DEBUG ("current master clock handle: 0x%08x",
(guint) * cur_clock_handle);
GST_DEBUG ("current master clock handle: %p", *cur_clock_handle);
CloseHandle (*cur_clock_handle);
g_free (cur_clock_handle);
} else {

View file

@ -180,11 +180,12 @@ ks_video_format_to_structure (GUID subtype_guid, GUID format_guid)
}
if (!structure) {
GST_DEBUG ("Unknown DirectShow Video GUID %08x-%04x-%04x-%04x-%08x%04x",
(guint) subtype_guid.Data1, (guint) subtype_guid.Data2,
(guint) subtype_guid.Data3,
(guint) subtype_guid.Data4, (guint) & subtype_guid.Data4[2],
(guint) & subtype_guid.Data4[6]);
GST_DEBUG ("Unknown DirectShow Video GUID "
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
subtype_guid.Data1, subtype_guid.Data2, subtype_guid.Data3,
subtype_guid.Data4[0], subtype_guid.Data4[1], subtype_guid.Data4[2],
subtype_guid.Data4[3], subtype_guid.Data4[4], subtype_guid.Data4[5],
subtype_guid.Data4[6], subtype_guid.Data4[7]);
}
return structure;